View Single Post
  #18  
Old 02-17-2007, 02:15 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Quote:
Originally Posted by projectigi View Post
....
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) {
    
100;
    
text player.level.name;
  }
}

function 
onPlayerEnters() {
  
LevelText.text player.level.name;

__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote