Skip to content

Commit ccf98d9

Browse files
authored
Fix intermittent crash on extension finalize (#23)
* Fix macOS coordinate system * Add create()/destroy() to example * Fix intermittent crash on extension finalize
1 parent 627cfa2 commit ccf98d9

File tree

3 files changed

+376
-11
lines changed

3 files changed

+376
-11
lines changed

main/main.gui

Lines changed: 327 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ background_color {
88
nodes {
99
position {
1010
x: 320.0
11-
y: 125.0
11+
y: 195.0
1212
z: 0.0
1313
w: 1.0
1414
}
@@ -169,7 +169,7 @@ nodes {
169169
nodes {
170170
position {
171171
x: 215.0
172-
y: 55.0
172+
y: 125.0
173173
z: 0.0
174174
w: 1.0
175175
}
@@ -330,7 +330,7 @@ nodes {
330330
nodes {
331331
position {
332332
x: 425.0
333-
y: 55.0
333+
y: 125.0
334334
z: 0.0
335335
w: 1.0
336336
}
@@ -491,7 +491,7 @@ nodes {
491491
nodes {
492492
position {
493493
x: 320.0
494-
y: 265.0
494+
y: 335.0
495495
z: 0.0
496496
w: 1.0
497497
}
@@ -652,7 +652,7 @@ nodes {
652652
nodes {
653653
position {
654654
x: 320.0
655-
y: 195.0
655+
y: 265.0
656656
z: 0.0
657657
w: 1.0
658658
}
@@ -810,6 +810,328 @@ nodes {
810810
text_leading: 1.0
811811
text_tracking: 0.0
812812
}
813+
nodes {
814+
position {
815+
x: 215.0
816+
y: 55.0
817+
z: 0.0
818+
w: 1.0
819+
}
820+
rotation {
821+
x: 0.0
822+
y: 0.0
823+
z: 0.0
824+
w: 1.0
825+
}
826+
scale {
827+
x: 0.5
828+
y: 0.5
829+
z: 1.0
830+
w: 1.0
831+
}
832+
size {
833+
x: 200.0
834+
y: 100.0
835+
z: 0.0
836+
w: 1.0
837+
}
838+
color {
839+
x: 1.0
840+
y: 1.0
841+
z: 1.0
842+
w: 1.0
843+
}
844+
type: TYPE_TEMPLATE
845+
id: "button_create"
846+
layer: ""
847+
inherit_alpha: true
848+
alpha: 1.0
849+
template: "/dirtylarry/button.gui"
850+
template_node_child: false
851+
}
852+
nodes {
853+
position {
854+
x: 0.0
855+
y: 0.0
856+
z: 0.0
857+
w: 1.0
858+
}
859+
rotation {
860+
x: 0.0
861+
y: 0.0
862+
z: 0.0
863+
w: 1.0
864+
}
865+
scale {
866+
x: 1.0
867+
y: 1.0
868+
z: 1.0
869+
w: 1.0
870+
}
871+
size {
872+
x: 380.0
873+
y: 120.0
874+
z: 0.0
875+
w: 1.0
876+
}
877+
color {
878+
x: 1.0
879+
y: 1.0
880+
z: 1.0
881+
w: 1.0
882+
}
883+
type: TYPE_BOX
884+
blend_mode: BLEND_MODE_ALPHA
885+
texture: "button/button_normal"
886+
id: "button_create/larrybutton"
887+
xanchor: XANCHOR_NONE
888+
yanchor: YANCHOR_NONE
889+
pivot: PIVOT_CENTER
890+
adjust_mode: ADJUST_MODE_FIT
891+
parent: "button_create"
892+
layer: ""
893+
inherit_alpha: true
894+
slice9 {
895+
x: 32.0
896+
y: 32.0
897+
z: 32.0
898+
w: 32.0
899+
}
900+
clipping_mode: CLIPPING_MODE_NONE
901+
clipping_visible: true
902+
clipping_inverted: false
903+
alpha: 1.0
904+
overridden_fields: 4
905+
template_node_child: true
906+
size_mode: SIZE_MODE_MANUAL
907+
}
908+
nodes {
909+
position {
910+
x: 0.0
911+
y: 0.0
912+
z: 0.0
913+
w: 1.0
914+
}
915+
rotation {
916+
x: 0.0
917+
y: 0.0
918+
z: 0.0
919+
w: 1.0
920+
}
921+
scale {
922+
x: 1.5
923+
y: 1.5
924+
z: 1.0
925+
w: 1.0
926+
}
927+
size {
928+
x: 200.0
929+
y: 100.0
930+
z: 0.0
931+
w: 1.0
932+
}
933+
color {
934+
x: 1.0
935+
y: 1.0
936+
z: 1.0
937+
w: 1.0
938+
}
939+
type: TYPE_TEXT
940+
blend_mode: BLEND_MODE_ALPHA
941+
text: "Create"
942+
font: "larryfont"
943+
id: "button_create/larrylabel"
944+
xanchor: XANCHOR_NONE
945+
yanchor: YANCHOR_NONE
946+
pivot: PIVOT_CENTER
947+
outline {
948+
x: 0.0
949+
y: 0.0
950+
z: 0.0
951+
w: 1.0
952+
}
953+
shadow {
954+
x: 1.0
955+
y: 1.0
956+
z: 1.0
957+
w: 1.0
958+
}
959+
adjust_mode: ADJUST_MODE_FIT
960+
line_break: false
961+
parent: "button_create/larrybutton"
962+
layer: ""
963+
inherit_alpha: true
964+
alpha: 1.0
965+
outline_alpha: 0.0
966+
shadow_alpha: 1.0
967+
overridden_fields: 3
968+
overridden_fields: 8
969+
overridden_fields: 31
970+
template_node_child: true
971+
text_leading: 1.0
972+
text_tracking: 0.0
973+
}
974+
nodes {
975+
position {
976+
x: 425.0
977+
y: 55.0
978+
z: 0.0
979+
w: 1.0
980+
}
981+
rotation {
982+
x: 0.0
983+
y: 0.0
984+
z: 0.0
985+
w: 1.0
986+
}
987+
scale {
988+
x: 0.5
989+
y: 0.5
990+
z: 1.0
991+
w: 1.0
992+
}
993+
size {
994+
x: 200.0
995+
y: 100.0
996+
z: 0.0
997+
w: 1.0
998+
}
999+
color {
1000+
x: 1.0
1001+
y: 1.0
1002+
z: 1.0
1003+
w: 1.0
1004+
}
1005+
type: TYPE_TEMPLATE
1006+
id: "button_destroy"
1007+
layer: ""
1008+
inherit_alpha: true
1009+
alpha: 1.0
1010+
template: "/dirtylarry/button.gui"
1011+
template_node_child: false
1012+
}
1013+
nodes {
1014+
position {
1015+
x: 0.0
1016+
y: 0.0
1017+
z: 0.0
1018+
w: 1.0
1019+
}
1020+
rotation {
1021+
x: 0.0
1022+
y: 0.0
1023+
z: 0.0
1024+
w: 1.0
1025+
}
1026+
scale {
1027+
x: 1.0
1028+
y: 1.0
1029+
z: 1.0
1030+
w: 1.0
1031+
}
1032+
size {
1033+
x: 380.0
1034+
y: 120.0
1035+
z: 0.0
1036+
w: 1.0
1037+
}
1038+
color {
1039+
x: 1.0
1040+
y: 1.0
1041+
z: 1.0
1042+
w: 1.0
1043+
}
1044+
type: TYPE_BOX
1045+
blend_mode: BLEND_MODE_ALPHA
1046+
texture: "button/button_normal"
1047+
id: "button_destroy/larrybutton"
1048+
xanchor: XANCHOR_NONE
1049+
yanchor: YANCHOR_NONE
1050+
pivot: PIVOT_CENTER
1051+
adjust_mode: ADJUST_MODE_FIT
1052+
parent: "button_destroy"
1053+
layer: ""
1054+
inherit_alpha: true
1055+
slice9 {
1056+
x: 32.0
1057+
y: 32.0
1058+
z: 32.0
1059+
w: 32.0
1060+
}
1061+
clipping_mode: CLIPPING_MODE_NONE
1062+
clipping_visible: true
1063+
clipping_inverted: false
1064+
alpha: 1.0
1065+
overridden_fields: 4
1066+
template_node_child: true
1067+
size_mode: SIZE_MODE_MANUAL
1068+
}
1069+
nodes {
1070+
position {
1071+
x: 0.0
1072+
y: 0.0
1073+
z: 0.0
1074+
w: 1.0
1075+
}
1076+
rotation {
1077+
x: 0.0
1078+
y: 0.0
1079+
z: 0.0
1080+
w: 1.0
1081+
}
1082+
scale {
1083+
x: 1.5
1084+
y: 1.5
1085+
z: 1.0
1086+
w: 1.0
1087+
}
1088+
size {
1089+
x: 200.0
1090+
y: 100.0
1091+
z: 0.0
1092+
w: 1.0
1093+
}
1094+
color {
1095+
x: 1.0
1096+
y: 1.0
1097+
z: 1.0
1098+
w: 1.0
1099+
}
1100+
type: TYPE_TEXT
1101+
blend_mode: BLEND_MODE_ALPHA
1102+
text: "Destroy"
1103+
font: "larryfont"
1104+
id: "button_destroy/larrylabel"
1105+
xanchor: XANCHOR_NONE
1106+
yanchor: YANCHOR_NONE
1107+
pivot: PIVOT_CENTER
1108+
outline {
1109+
x: 0.0
1110+
y: 0.0
1111+
z: 0.0
1112+
w: 1.0
1113+
}
1114+
shadow {
1115+
x: 1.0
1116+
y: 1.0
1117+
z: 1.0
1118+
w: 1.0
1119+
}
1120+
adjust_mode: ADJUST_MODE_FIT
1121+
line_break: false
1122+
parent: "button_destroy/larrybutton"
1123+
layer: ""
1124+
inherit_alpha: true
1125+
alpha: 1.0
1126+
outline_alpha: 0.0
1127+
shadow_alpha: 1.0
1128+
overridden_fields: 3
1129+
overridden_fields: 8
1130+
overridden_fields: 31
1131+
template_node_child: true
1132+
text_leading: 1.0
1133+
text_tracking: 0.0
1134+
}
8131135
material: "/builtins/materials/gui.material"
8141136
adjust_reference: ADJUST_REFERENCE_PARENT
8151137
max_nodes: 512

0 commit comments

Comments
 (0)