anything related to UI in general, splash screens, UI widgets, input and output etc.

VGUI Button

VGUI Button

Postby Shando » 16 Sep 2017, 22:53

Hi all,

Just a quick question regarding Buttons in the VGUI Editor....

If I set the following options:
    Click - Tagname = scenescript
    Click - Lua Function = bCont11
    Click - Lua Args = 1

Does the function become
Code: Select all
bCont11 ( )
or
Code: Select all
bCont11_Clicked ( )
?

Thanks in advance

Shando
Ryzen 7 4800H 16GB GTX1650 Win 11 64
Love, Hope, Strength http://www.lovehopestrength.co.uk
User avatar
Shando
Skyline Moderator
Skyline Moderator
 
Posts: 560
Joined: 06 Mar 2013, 22:35
Location: Moffat Beach, Queensland
Skill: Programmer
Skill: Scripter
Skill: Level Designer

Re: VGUI Button

Postby SolarPortal » 17 Sep 2017, 12:00

The function would be:
but i think function buttons from GUI editor pass an id as first argument followed by other arguments.

Code: Select all
function bCont11( id )
end


The _Clicked version is for the Qt editor system. So many editor systems to take note of haha :P
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 4770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer

Re: VGUI Button

Postby Shando » 17 Sep 2017, 12:26

Hi SP,

Cool, I'll bear that in mind.

So many editor systems to take note of haha


:lol:

Shando
Ryzen 7 4800H 16GB GTX1650 Win 11 64
Love, Hope, Strength http://www.lovehopestrength.co.uk
User avatar
Shando
Skyline Moderator
Skyline Moderator
 
Posts: 560
Joined: 06 Mar 2013, 22:35
Location: Moffat Beach, Queensland
Skill: Programmer
Skill: Scripter
Skill: Level Designer


Return to UI

Who is online

Users browsing this forum: No registered users and 6 guests

cron