In my map with a recent update of SC2 (3.17) the text of the day/night timer window has faded so it is VERY difficult to see (image attached below). The timer window is uses Galaxy script rather than triggers.
This is because I am not the original creator of this map, I am renewing it so I do not know Galaxy script that well (but I do know java).
I have attached an image of the code that I believe to be relevant. How do I fix the faded window timer text?
ATTACHMENTS
Capture
Timer new
Rollback Post to RevisionRollBack
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
Using libVCUI_gf_TimerWindowCreate will solve the issue. Take a look at the Void Native Lib concerning timers. You can also send animations events to the timer as well.
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
Ok how do you suggest I add it into the galaxy script? Because it does not accept it in the editor script, and i can't find it in the triggers (when i search it up with 'View raw data' active). I attached an image of what i tried. Sorry if i'm being dumb.
ATTACHMENTS
What i did
Rollback Post to RevisionRollBack
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
Can someone help me with how to add libVCUI_gf_TimerWindowCreate? Or some other way to fix the problem?
Rollback Post to RevisionRollBack
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
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.
Hmmm well firstly I think I have the void story dependency. But i tested your code anyway.
The code you gave me, it removed the window entirely, but the timer text was still there.
Did i enter the code correctly?
ATTACHMENTS
dependencies
Timer window gone
Your code
Your variable
Rollback Post to RevisionRollBack
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
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.
IT WORKED! I did your TimerWindoeShowBorder thing after the TimerWindowCreate and it worked! (Along with the suggestion you made before that) Thank you Talv_/SomeoneTookMyNameTT!
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
Hello everyone,
In my map with a recent update of SC2 (3.17) the text of the day/night timer window has faded so it is VERY difficult to see (image attached below). The timer window is uses Galaxy script rather than triggers.
This is because I am not the original creator of this map, I am renewing it so I do not know Galaxy script that well (but I do know java).
I have attached an image of the code that I believe to be relevant. How do I fix the faded window timer text?
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
Stranded on Krydon Renewed EXTREME- A modified version of SoKR with much harder difficulty.
Using libVCUI_gf_TimerWindowCreate will solve the issue. Take a look at the Void Native Lib concerning timers. You can also send animations events to the timer as well.
Ok thanks I will do that asap,
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
Stranded on Krydon Renewed EXTREME- A modified version of SoKR with much harder difficulty.
In reply to Prodigy454:
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
Stranded on Krydon Renewed EXTREME- A modified version of SoKR with much harder difficulty.
Can someone help me with how to add libVCUI_gf_TimerWindowCreate? Or some other way to fix the problem?
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
Stranded on Krydon Renewed EXTREME- A modified version of SoKR with much harder difficulty.
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
Hmmm well firstly I think I have the void story dependency. But i tested your code anyway.
The code you gave me, it removed the window entirely, but the timer text was still there.
Did i enter the code correctly?
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
Stranded on Krydon Renewed EXTREME- A modified version of SoKR with much harder difficulty.
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
IT WORKED! I did your TimerWindoeShowBorder thing after the TimerWindowCreate and it worked! (Along with the suggestion you made before that) Thank you Talv_/SomeoneTookMyNameTT!
Stranded on Krydon Renewed- A renewed version of Stranded on Krydon that is being constantly updated, has improved visuals, is more friendly to new players, lots more fun tweaks and much more planned to come.
Stranded on Krydon Renewed EXTREME- A modified version of SoKR with much harder difficulty.