Jump to content

How to add a guieditor window to freeroam panel?


Turbe$Z

Recommended Posts

1 hour ago, loki2143 said:

Can you be a bit more specific?

Give an example.

for example:

---------------------------
-- asd
---------------------------

local GUIEditor = {
    button = {},
    window = {},
    memo = {}
}
addEventHandler("onClientResourceStart", resourceRoot,
    function()
        GUIEditor.window[1] = guiCreateWindow(518, 358, 435, 223, "Teszt ablak", false)
        guiWindowSetSizable(GUIEditor.window[1], false)

        GUIEditor.memo[1] = guiCreateMemo(11, 29, 414, 155, "Teszt memo", false, GUIEditor.window[1])
        guiMemoSetReadOnly(GUIEditor.memo[1], true)
        GUIEditor.button[1] = guiCreateButton(11, 189, 414, 24, "Teszt gomb", false, GUIEditor.window[1]) 
		guiSetVisible(GUIEditor.window[1], false)
    end
)
		{'btn', id='GUIEditor.window[1]', text='Teszt', window=GUIEditor.window[1], width=244},

but this doesn't working

Link to comment

From the freeroam :

 

wndAnim = {
	'wnd',
	text = 'Set animation',
	width = 250,
	x = -20,
	y = 0.3,
	controls = {
		{
			'lst',
			id='animlist',
			width=230,
			height=290,
			columns={
				{text='Animation', attr='name'}
			},
			rows={xml='animations.xml', attrs={'name'}},
			expandlastlevel=false,
			onitemdoubleclick=applyAnimation
		},
		{'btn', id='set', onclick=applyAnimation},
		{'btn', id='stop', onclick=stopAnimation},
		{'btn', id='close', closeswindow=true}
	}
}

 

 

This is how to create a window in the freeroam .

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...