Although it is likely that, this alone won't make the frame to appear.
If you're saying that you do have VoidStory dependency then lets just use mentioned function. From what I can see the code looks correct in post #4. What was the error it printed? I suppose it could not work because VCUI library is not loaded. Some libraries aren't auto loaded until you actually take use of functions/triggers it exports. But it does that only when you use it through GUI elements.
The easiest way to force autoload would be probably to have dummy trigger w/o any events. And just one action: Create Timer Window (Campaign) the one from UI (Void) library. Provide some fake arguments in order for it to compile.
Once you do that the library should auto load, and all its functions will be accessible from custom script.
Mentioned function relies on several other functions and variables from VoidStory dependency. So you'll either have to copy-paste all of these, or attach the dependency itself into your map.
If you wnat just the fix, this should do it:
// ... THIS PART SHOULD COME AFTER TimerWindowCreate
DialogControlHookupStandard(c_triggerControlTypePanel, "UIContainer\\ConsoleUIContainer\\TriggerWindowPanel\\TimerWindowTemplate");
DialogControlSendAnimationEvent(DialogControlLastCreated(), PlayerGroupAll(), "HighlightStop");
But if you're going to create multiple TimerWindows through the game, you'll need to save the hookup id to variable, as it is not possible to create multiple hookups to the same Standard frame IIRC.
For that you'll need additional global variable, like:
Should work, but keep it mind that I didn't test it at all.
The code from libVCUI_gf_TimerWindowCreate is for some reason destroying previously created hookup, and then hooks it up again.. but I don't think that's needed.
You did alright. Apparently we're missing some relevant part of code.. try to add this:
(After TimerWindowCreate)
Although it is likely that, this alone won't make the frame to appear.
If you're saying that you do have VoidStory dependency then lets just use mentioned function. From what I can see the code looks correct in post #4. What was the error it printed?
I suppose it could not work because VCUI library is not loaded. Some libraries aren't auto loaded until you actually take use of functions/triggers it exports. But it does that only when you use it through GUI elements.
The easiest way to force autoload would be probably to have dummy trigger w/o any events. And just one action:
Create Timer Window (Campaign)
the one from UI (Void) library.
Provide some fake arguments in order for it to compile.
Once you do that the library should auto load, and all its functions will be accessible from custom script.
Previously known as: SomeoneTookMyNameTT
Mentioned function relies on several other functions and variables from VoidStory dependency. So you'll either have to copy-paste all of these, or attach the dependency itself into your map.
If you wnat just the fix, this should do it:
http://peeeq.de/code.php?id=29105
But if you're going to create multiple TimerWindows through the game, you'll need to save the hookup id to variable, as it is not possible to create multiple hookups to the same Standard frame IIRC.
For that you'll need additional global variable, like:
And the code above would expand to:
http://peeeq.de/code.php?id=29106
Should work, but keep it mind that I didn't test it at all.
The code from libVCUI_gf_TimerWindowCreate is for some reason destroying previously created hookup, and then hooks it up again.. but I don't think that's needed.
Previously known as: SomeoneTookMyNameTT