mirror of
https://github.com/edubart/otclient.git
synced 2025-12-01 07:36:49 +01:00
new script engine, and things maybe be bugged for a while
This commit is contained in:
@@ -1,37 +1,63 @@
|
||||
%panel#mainBackground
|
||||
image: { source: background.png; antialised: true }
|
||||
@import "additional_elements"
|
||||
|
||||
Panel
|
||||
id: "mainBackground"
|
||||
image:
|
||||
source: "background.png"
|
||||
antialised: true
|
||||
anchor.fill: parent
|
||||
|
||||
%panel#mainMenuPanel.flat
|
||||
size: 117 171
|
||||
|
||||
lista:
|
||||
- valor1
|
||||
- valor2
|
||||
- valor3
|
||||
|
||||
FlatPanel
|
||||
id: mainMenuPanel
|
||||
size: {117, 171}
|
||||
anchors.bottom: parent.bottom
|
||||
anchors.left: parent.left
|
||||
margin: 70 60
|
||||
margin: {70, 60}
|
||||
|
||||
button
|
||||
anchors.top: prev.bottom
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
margin.top: 6
|
||||
|
||||
%button.first
|
||||
// enter game button
|
||||
Button
|
||||
text: "Enter Game"
|
||||
anchors.top: parent.top
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
margin.top: 16
|
||||
text: Enter Game
|
||||
onClick: |
|
||||
function(self)
|
||||
if not mainMenu:getChild("enterGameWindow") then
|
||||
local enterGame = loadUI("entergamewindow")
|
||||
enterGame:setLocked(true)
|
||||
end
|
||||
end
|
||||
|
||||
Button
|
||||
text: "Access Account"
|
||||
anchors.top: prev.bottom
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
margin.top: 6
|
||||
onClick: loadUI("entergamewindow")
|
||||
|
||||
%button.notImplemented
|
||||
text: Access Account
|
||||
|
||||
%button
|
||||
text: Options
|
||||
Button
|
||||
text: "Options"
|
||||
anchors.top: prev.bottom
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
margin.top: 6
|
||||
onClick: loadUI("optionswindow")
|
||||
|
||||
%button
|
||||
text: Info
|
||||
Button
|
||||
text: "Info"
|
||||
anchors.top: prev.bottom
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
margin.top: 6
|
||||
onClick: loadUI("infowindow")
|
||||
|
||||
%button
|
||||
text: Exit
|
||||
Button
|
||||
text: "Exit"
|
||||
anchors.top: prev.bottom
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
margin.top: 6
|
||||
onClick: terminateApplication()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user