3pher.za Posted August 2, 2022 Share Posted August 2, 2022 Hi everyone! I really need help :(((( How can I do this : local myWindow = guiCreateWindow ( 0, 0, 0.5, 0.4, "Information", true ) -- create a window which has "Information" in the title bar. local tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow ) -- create a tab panel which fills the whole window local tabMap = guiCreateTab( "Map Information", tabPanel ) -- create a tab named "Map Information" on 'tabPanel' local tabHelp = guiCreateTab( "Help", tabPanel ) -- create another tab named "Help" on 'tabPanel' -- adds a label (text) to each tab guiCreateLabel(0.02, 0.04, 0.94, 0.2, "This is information about the current map", true, tabMap) guiCreateLabel(0.02, 0.04, 0.94, 0.92, "This is help text.", true, tabHelp) using for example "F2" open? please help me :'(((((( Link to comment
Vampire Posted August 2, 2022 Share Posted August 2, 2022 Hello @Seza and welcome! I'm moving this to the Scripting section as it's more suitable so you can get better assistance. 1 Link to comment
3pher.za Posted August 2, 2022 Author Share Posted August 2, 2022 2 minutes ago, Vampire said: Hello @Seza and welcome! I'm moving this to the Scripting section as it's more suitable so you can get better assistance. Tanks Link to comment
#\_oskar_/# Posted August 2, 2022 Share Posted August 2, 2022 guiSetVisible + bindKey Link to comment
AngelAlpha Posted August 3, 2022 Share Posted August 3, 2022 23 hours ago, Seza said: Hi everyone! I really need help :(((( How can I do this : local myWindow = guiCreateWindow ( 0, 0, 0.5, 0.4, "Information", true ) -- create a window which has "Information" in the title bar. local tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow ) -- create a tab panel which fills the whole window local tabMap = guiCreateTab( "Map Information", tabPanel ) -- create a tab named "Map Information" on 'tabPanel' local tabHelp = guiCreateTab( "Help", tabPanel ) -- create another tab named "Help" on 'tabPanel' -- adds a label (text) to each tab guiCreateLabel(0.02, 0.04, 0.94, 0.2, "This is information about the current map", true, tabMap) guiCreateLabel(0.02, 0.04, 0.94, 0.92, "This is help text.", true, tabHelp) using for example "F2" open? please help me :'(((((( local myWindow = guiCreateWindow ( 0, 0, 0.5, 0.4, "Information", true ) -- create a window which has "Information" in the title bar. local tabPanel = guiCreateTabPanel ( 0, 0.1, 1, 1, true, myWindow ) -- create a tab panel which fills the whole window local tabMap = guiCreateTab( "Map Information", tabPanel ) -- create a tab named "Map Information" on 'tabPanel' local tabHelp = guiCreateTab( "Help", tabPanel ) -- create another tab named "Help" on 'tabPanel' -- adds a label (text) to each tab guiCreateLabel(0.02, 0.04, 0.94, 0.2, "This is information about the current map", true, tabMap) guiCreateLabel(0.02, 0.04, 0.94, 0.92, "This is help text.", true, tabHelp) guiSetVisible(myWindow, false) bindKey("f2", "down", function() guiSetVisible (myWindow, not guiGetVisible(myWindow)) showCursor(guiGetVisible(myWindow)) end) 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now