Forum

> > CS2D > Scripts > Q: How To Add custom HUD?
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch Q: How To Add custom HUD?

6 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

verschoben Q: How To Add custom HUD?

MrMarx
User Off Offline

Zitieren
flame Hi, everyone. The thing i wanted to ask is, how can i change my gui trought lua files ( mods ), an example one of the tf2d mod has got everything custom, gui, players. I want it to make so others see, also some rp mods are using custom guis too, should i look an example from them, how can i add custom gui, please answer... Thanks. flame
1× editiert, zuletzt 05.04.11 19:34:19

Admin/Mod Kommentar

moved to scripts cause that's what you are talking about

alt Re: Q: How To Add custom HUD?

ohaz
User Off Offline

Zitieren
You can't change the gui by using Lua (only the server can). The GUI itself can only be changed by changing the source code, which is only possible with very old versions of cs2d

alt Re: Q: How To Add custom HUD?

J4x
User Off Offline

Zitieren
But u can make your own menu with lua.
PS: since when u r not admin TKD?
1× editiert, zuletzt 14.03.11 21:13:32

alt Re: Q: How To Add custom HUD?

MrMarx
User Off Offline

Zitieren
TheKilledDeath hat geschrieben
You can't change the gui by using Lua (only the server can). The GUI itself can only be changed by changing the source code, which is only possible with very old versions of cs2d


Yeah but i'm talking about if I CREATE a server, with a lua, that shows your xp, money and hp with a custom skin, like in mod called RP. But i don't have it so i don't know :(, oh yeah, like on guy said - "Above post is true.
I've seen it possible in a Tibia-like server." - there was a reskin for the radar that everyone could see ( serverside skin ), so don't tell me that it's imposible, i'm not blind, or retard :(, i JUST WANT to know how to add custom serverside skins and it is posible

alt Re: Q: How To Add custom HUD?

DannyDeth
User Off Offline

Zitieren
That isn't a GUI, lol. It's called a HUD ( heads up display ).
You can do this with Lua, see info.txt in sys/lua and scroll to the bottom, there is something down there to display images and text on your hud.

EDIT: Uuh, TKD, I thought u were a mod...

alt Re: Q: How To Add custom HUD?

KimKat
GAME BANNED Off Offline

Zitieren
@Havk995: The custom radar graphic image would get in the way of the actual radar though. If DC could create a option to disable the default radar graphic perhaps this would work better. Of course it'd be DC's choice to decide whether or not this will be featured or not. But it would be a useful idea to disable elements on clients through lua (perhaps only temporary change). Just a thought.

Perhaps a lua/server command like this.
1
lua sv_radar [1/0]
1 = on, 0 = off. You know the drill.
That would be how to disable that element on the HUD for all players in order to use a lua radar graphic image, sort of.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht