Skip to content

Commit

Permalink
Added more frames to 0-second init
Browse files Browse the repository at this point in the history
  • Loading branch information
Son-Guhun committed Jun 15, 2020
1 parent 6af20df commit ab38119
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
9 changes: 8 additions & 1 deletion release/trigger/20-vJass/21-CustomizableAbilityList.j
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ endfunction

private module Init

private static method onInit takes nothing returns nothing
private static method onStart takes nothing returns nothing
call BlzLoadTOCFile( "war3mapImported\\Templates.toc" )
set abilityListTextArea = BlzCreateFrame("EscMenuTextAreaTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0),0,0)
call BlzFrameSetAbsPoint(abilityListTextArea, FRAMEPOINT_TOPLEFT, 0.5, 0.5)
Expand Down Expand Up @@ -503,6 +503,13 @@ private module Init
call .registerAbility('Scri', false) //"Cripple"
call .registerAbility('Sshm', false) //"Shadow Meld"
call .registerAbility('Suhf', false) //"Unholy Frenzy"


call DestroyTimer(GetExpiredTimer())
endmethod

private static method onInit takes nothing returns nothing
call TimerStart(CreateTimer(), 0., false, function thistype.onStart)
endmethod

endmodule
Expand Down
20 changes: 16 additions & 4 deletions release/trigger/49-AdvChatBox/1-AdvChatBox View.j
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
library AdvChatBoxView

private keyword Init

struct AdvChatBox extends array
readonly static framehandle editBox
readonly static framehandle typingIndicator
Expand All @@ -9,8 +11,12 @@ struct AdvChatBox extends array
readonly static framehandle sendButton
readonly static framehandle oocButtonNoBuffer
readonly static framehandle speakerButton

private static method onInit takes nothing returns nothing

implement Init
endstruct

private module Init
private static method onStart takes nothing returns nothing
call BlzLoadTOCFile("war3mapImported\\Templates.toc")

set AdvChatBox.editBox = BlzCreateFrame("EscMenuEditBoxTemplate", BlzGetOriginFrame(ORIGIN_FRAME_GAME_UI, 0),0,0)
Expand Down Expand Up @@ -53,8 +59,14 @@ struct AdvChatBox extends array
set AdvChatBox.charCounter = BlzCreateFrameByType("TEXT", "CharacterCounter", AdvChatBox.editBox, "StandardSmallTextTemplate", 0)
call BlzFrameSetSize(AdvChatBox.charCounter, 0.1, 0.028)
call BlzFrameSetText(AdvChatBox.charCounter, "0/255")
call BlzFrameSetPoint(AdvChatBox.charCounter, FRAMEPOINT_RIGHT, AdvChatBox.editBox, FRAMEPOINT_RIGHT, 0.05, 0)
call BlzFrameSetPoint(AdvChatBox.charCounter, FRAMEPOINT_RIGHT, AdvChatBox.editBox, FRAMEPOINT_RIGHT, 0.05, 0)

call DestroyTimer(GetExpiredTimer())
endmethod
endstruct

private static method onInit takes nothing returns nothing
call TimerStart(CreateTimer(), 0., false, function thistype.onStart)
endmethod
endmodule

endlibrary

0 comments on commit ab38119

Please sign in to comment.