* implement some pt-BR translations * remove legacy about modulemaster
parent
ca0e1bd38b
commit
34091bc48e
@ -1,34 +0,0 @@
|
||||
About = {}
|
||||
|
||||
-- private variables
|
||||
local aboutButton
|
||||
local aboutWindow
|
||||
|
||||
-- public functions
|
||||
function About.init()
|
||||
aboutButton = TopMenu.addRightButton('aboutButton', 'About', 'about.png', About.show)
|
||||
aboutWindow = displayUI('about.otui')
|
||||
aboutWindow:hide()
|
||||
end
|
||||
|
||||
function About.terminate()
|
||||
aboutButton:destroy()
|
||||
aboutButton = nil
|
||||
aboutWindow:destroy()
|
||||
aboutWindow = nil
|
||||
About = nil
|
||||
end
|
||||
|
||||
function About.show()
|
||||
aboutWindow:show()
|
||||
aboutWindow:raise()
|
||||
aboutWindow:focus()
|
||||
end
|
||||
|
||||
function About.hide()
|
||||
aboutWindow:hide()
|
||||
end
|
||||
|
||||
function About.openWebpage()
|
||||
displayErrorBox("Error", "Not implemented yet")
|
||||
end
|
@ -1,15 +0,0 @@
|
||||
Module
|
||||
name: client_about
|
||||
description: Create the about window
|
||||
author: OTClient team
|
||||
website: https://github.com/edubart/otclient
|
||||
|
||||
dependencies:
|
||||
- client_topmenu
|
||||
|
||||
@onLoad: |
|
||||
dofile 'about'
|
||||
About.init()
|
||||
|
||||
@onUnload: |
|
||||
About.terminate()
|
@ -1,58 +0,0 @@
|
||||
MainWindow
|
||||
id: about
|
||||
text: Info
|
||||
size: 244 221
|
||||
|
||||
@onEnter: About.hide()
|
||||
@onEscape: About.hide()
|
||||
|
||||
FlatPanel
|
||||
size: 208 129
|
||||
anchors.left: parent.left
|
||||
anchors.top: parent.top
|
||||
|
||||
Label
|
||||
text-align: center
|
||||
text: |-
|
||||
OTClient
|
||||
Version 0.4.0
|
||||
Created by edubart
|
||||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
anchors.top: parent.top
|
||||
margin-top: 20
|
||||
|
||||
HorizontalSeparator
|
||||
size: 190 2
|
||||
anchors.left: parent.left
|
||||
anchors.top: parent.top
|
||||
margin-top: 83
|
||||
margin-left: 9
|
||||
|
||||
Label
|
||||
text: Official Website
|
||||
anchors.left: parent.left
|
||||
anchors.bottom: parent.bottom
|
||||
margin-bottom: 14
|
||||
margin-left: 9
|
||||
|
||||
Button
|
||||
text: Github Page
|
||||
size: 88 24
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
margin-bottom: 9
|
||||
margin-right: 9
|
||||
@onClick: About.openWebpage()
|
||||
|
||||
HorizontalSeparator
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.top: prev.bottom
|
||||
margin-top: 12
|
||||
|
||||
Button
|
||||
text: Ok
|
||||
size: 46 24
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
@onClick: About.hide()
|
Before Width: | Height: | Size: 763 B |
@ -1,28 +1,28 @@
|
||||
Panel
|
||||
OptionCheckBox
|
||||
id: classicControl
|
||||
text: Classic control
|
||||
!text: tr('Classic control')
|
||||
|
||||
OptionCheckBox
|
||||
id: showInfoMessagesInConsole
|
||||
text: Show info messages in console
|
||||
!text: tr('Show info messages in console')
|
||||
|
||||
OptionCheckBox
|
||||
id: showEventMessagesInConsole
|
||||
text: Show event messages in console
|
||||
!text: tr('Show event messages in console')
|
||||
|
||||
OptionCheckBox
|
||||
id: showStatusMessagesInConsole
|
||||
text: Show status messages in console
|
||||
!text: tr('Show status messages in console')
|
||||
|
||||
OptionCheckBox
|
||||
id: showTimestampsInConsole
|
||||
text: Show timestamps in console
|
||||
!text: tr('Show timestamps in console')
|
||||
|
||||
OptionCheckBox
|
||||
id: showLevelsInConsole
|
||||
text: Show levels in console
|
||||
!text: tr('Show levels in console')
|
||||
|
||||
OptionCheckBox
|
||||
id: showPrivateMessagesInConsole
|
||||
text: Show private messages in console
|
||||
!text: tr('Show private messages in console')
|
||||
|
Loading…
Reference in new issue