UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

Is there anyway to create text banners....

broken avatar :(
Created 12 years ago
by epicduck97
0 Members and 1 Guest are viewing this topic.
2,737 views
broken avatar :(
×
broken avatar :(
Location: usSD
Date Registered: 30 May 2013
Last active: 4 years ago
Posts
44
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
epicduck97's Groups
epicduck97's Contact & Social Links
Ok, I've asked alot of questions today :p... Well, can we display text banners like this in game with a function and change the text, etc.... Or are these pictures they are displaying on the screen..

This is the banner I'm talking about:
http://prntscr.com/42g9dt

Thanks - Teddi

**And before you call me out, I did check the script reference, and I couldn't find any that do work outside of debug mode...**
Last Edit: July 14, 2014, 03:21:58 am by epicduck97
This topic contains a post which is marked as the Best Answer. Click here to view it.
broken avatar :(
  • n123q45
  • Deleted Member
×
broken avatar :(
n123q45
This user is deleted :(
im pretty sure those are hud elements with a background color
broken avatar :(
×
broken avatar :(
Location: usSD
Date Registered: 30 May 2013
Last active: 4 years ago
Posts
44
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
epicduck97's Groups
epicduck97's Contact & Social Links
im pretty sure those are hud elements with a background color

Thats what I was thinking, is there anyway we can create hud elements simply.. lol

Post Merge: July 14, 2014, 03:30:48 am
im pretty sure those are hud elements with a background color

Is there any other way to display 2d text with a function, not in debug mode of any way..
Last Edit: July 14, 2014, 03:30:48 am by epicduck97
broken avatar :(
  • n123q45
  • Deleted Member
×
broken avatar :(
n123q45
This user is deleted :(
creating a hud element is using a function silly :)
broken avatar :(
×
broken avatar :(
Location: usSD
Date Registered: 30 May 2013
Last active: 4 years ago
Posts
44
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
epicduck97's Groups
epicduck97's Contact & Social Links
@n123q45
 im new to this lol, any chance you have some code off the top of your head?

Post Merge: July 14, 2014, 03:35:21 am
creating a hud element is using a function silly :)

^^
Last Edit: July 14, 2014, 03:35:22 am by epicduck97
Marked as best answer by epicduck97 12 years ago
broken avatar :(
  • n123q45
  • Deleted Member
×
broken avatar :(
n123q45
This user is deleted :(
lol it depends on your type text or image.
text:
Spoiler: click to open...
        text = create_simple_hud();
   text.foreground = 1;
   text.horzAlign = "left";
   text.vertAlign = "top";
   text.alignX = "left";
   text.alignY = "top";
   //text.y = -210;
   //text.x = -120;
   text.foreground = 1;
   text.alpha = 1;
   text.color = ( 1, 1, 1 ); // this is color
        text SetText( "text goes here" );

image:
Spoiler: click to open...
        var = create_simple_hud();
   var.alignX = "left";
   var.alignY = "top";
   var.horzAlign = "left";
   var.vertAlign = "top";
   var.foreground = 1; // this tells if itll be behind other hud elements or not
   //var.x = -100; // this moves it on the x axis; you can also use ".y"
   var.alpha = 1;
   var.color = ( 1, 1, 1 ); // this makes it so there is no tint to it
   var SetShader( "unlock_token_128", 64, 64 ); // must prechache the shader first

as for the background, im still fairly new at this so i dont know id there is a .soso for it. i reccomend having a soldi color image be behind the text.
broken avatar :(
×
broken avatar :(
Location: usSD
Date Registered: 30 May 2013
Last active: 4 years ago
Posts
44
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
epicduck97's Groups
epicduck97's Contact & Social Links
lol it depends on your type text or image.
text:
Spoiler: click to open...
        text = create_simple_hud();
   text.foreground = 1;
   text.horzAlign = "left";
   text.vertAlign = "top";
   text.alignX = "left";
   text.alignY = "top";
   //text.y = -210;
   //text.x = -120;
   text.foreground = 1;
   text.alpha = 1;
   text.color = ( 1, 1, 1 ); // this is color
        text SetText( "text goes here" );

image:
Spoiler: click to open...
        var = create_simple_hud();
   var.alignX = "left";
   var.alignY = "top";
   var.horzAlign = "left";
   var.vertAlign = "top";
   var.foreground = 1; // this tells if itll be behind other hud elements or not
   //var.x = -100; // this moves it on the x axis; you can also use ".y"
   var.alpha = 1;
   var.color = ( 1, 1, 1 ); // this makes it so there is no tint to it
   var SetShader( "unlock_token_128", 64, 64 ); // must prechache the shader first

as for the background, im still fairly new at this so i dont know id there is a .soso for it. i reccomend having a soldi color image be behind the text.

Thanks man works like a charm - Teddi
broken avatar :(
  • n123q45
  • Deleted Member
×
broken avatar :(
n123q45
This user is deleted :(
welcome. careful the ordering is important. the first ones will be on top of the bottom ones
broken avatar :(
×
broken avatar :(
Location: usSD
Date Registered: 30 May 2013
Last active: 4 years ago
Posts
44
Respect
Forum Rank
Legless Crawler
Primary Group
Member
×
epicduck97's Groups
epicduck97's Contact & Social Links
welcome. careful the ordering is important. the first ones will be on top of the bottom ones

I know thanks for that, and one thing, can you go on skype real quick im Max Kunes, can I ask you a couple questions real quick..
broken avatar :(
  • n123q45
  • Deleted Member
×
broken avatar :(
n123q45
This user is deleted :(
you can add meh instead. im n123q45 and the only one :)

 
Loading ...