Quote:
Originally Posted by projectigi
....
a Server wants to show a Text on the Screen that tells you the current Area
like "Online Start Local" "Kokiri Town" etc
now it sucks if you have to make a own guicontrol for every text you ever want to display on the screen, because showtext has no function to make it appear over gui controls
|
You can do this with
only one GuiShowImgCtrl easily (which can also reside within any other GuiControl):
Here's something simple...
PHP Code:
//#CLIENTSIDE
function onCreated() {
if (LevelText != null) {
LevelText.destroy();
}
new GuiShowImgCtrl(LevelText) {
x = y = 100;
text = player.level.name;
}
}
function onPlayerEnters() {
LevelText.text = player.level.name;
}