Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Button@ button;
- void StartDelayed(){
- window = Window();
- ui.root.AddChild(window);
- window.SetMinSize(384, 192);
- window.SetLayout(LM_VERTICAL, 6, IntRect(6, 6, 6, 6));
- window.SetAlignment(HA_CENTER, VA_CENTER);
- window.SetStyleAuto();
- logoSprite.visible=false;
- button = Button();
- button.name = "Button";
- button.minHeight = 24;
- window.AddChild(button);
- button.SetStyleAuto();
- SubscribeToEvent(button, "Pressed", "HandleClosePressed");
- }
- void HandleClosePressed(){
- LoadGM();
- }
- void LoadGM(){
- UnsubscribeFromEvents(button);
- ui.root.RemoveChild(window);
- input.mouseVisible=false;
- CreateScene();
- CreateCharacter();
- InitAudio();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement