Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
How to when player press X button
Make the window hide calling the function OnOff just as the hotkey...
function init()
mainWindow = nil
mainButton = nil
g_keyboard.bindKeyDown('Shift+F12', onoff)
mainWindow = g_ui.displayUI('main.otui')
mainWindow:hide()...
:(
sad, same here, only works if i reload the modules
if i do
anchors.centerIn: parent
or
anchors.horizontalcenter: parent.horizontalcenter
anchors.verticalcenter: parent.verticalcenter
it works, put in the center, but i cant move the window and i want to be able to move the window where...
I have this UI:
MiniWindow
id: mainWindow
width: 625
height: 160
top: 100
bottom: 100
left: 100
right: 100
@onClose: modules.game_minimap.onMiniWindowClose()
but when i show it
it always comes on top left
how to make it always spawn in the middle of screen? on the center...
that top,left,right,bottom should be something i do on .lua?
i mean, like mainWindow:addAnchor(AnchorHorizontalCenter, 'parent', AnchorHorizontalCenter)
maybe on init, or when create the stuff?
if it is a good place to test, how to do there?
Same thing, no errors, no open
I'm not understanding what are u trying to do in this
On this way is working:
mainWindow = nil
mainButton = nil
g_keyboard.bindKeyDown('Shift+F12', onoff)
function init()
mainButton = modules.client_topmenu.addRightToggleButton('mainButton', tr('Elfbot...
if i just remove that
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
it starts on north west and i can move normal...
like this:
mainWindow = nil
mainButton = nil
g_keyboard.bindKeyDown('Shift+F12', onoff)
function init()...
1)
i just wanted to this starts in the center horizontal and vertical, but i would like to move the window, like it can be done on elfbot
I wouldnt like this fixed on the center :(
3)
like this:
mainWindow = nil
mainButton = nil
g_keyboard.bindKeyDown('Shift+F12', onoff)
function init()...