• 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!

OTClient window doubt

Helliot1

Owner of Empire Online
Joined
Jul 26, 2017
Messages
315
Solutions
1
Reaction score
58
if I have a Window, example "inventory" and in this window have a Button, and when I click in the button will open a new window... How I can make it ?
 
Well... first of all you need to give a name of this button and style in the .otui file after that create a object in .LUA file...

A stupid example...
zzhN5Gm.png


You see the transformation about "battleButton" value? And functions related to the main object.

See the /modules/ like a example.... sample.
 
This is my button, but how would I create the button in lua ?

When I click in this button, it'll appear a window

CSS:
  LoginButton
    id: optionsButton
    !text: tr('Options')
    height: 27
    width: 117
    anchors.left: HorizontalSeparator.left
    anchors.top: HorizontalSeparator.bottom
    margin-top: 10

@Edit: the correct it's create a function to create this widget?
 
Last edited:
Back
Top