// OT-MMO: ventana del maestro de clase (Corvo, en el templo de Vigilia), al estilo de un entrenador de WoW. // La abre el servidor al saludarlo o decir «hechizos» (server/scripts/clases/maestro.lua, opcode 125). // Clases comunes de data/styles/50-otmmo.otui; íconos de la tira otmmo-32x32 (gamelib/spells.lua). MaestroFila < GameRow height: 44 padding: 0 focusable: false GameCell id: marco anchors.left: parent.left anchors.verticalCenter: parent.verticalCenter margin-left: 4 phantom: true UIWidget id: icono size: 32 32 anchors.centerIn: parent phantom: true GameLabelStrong id: nombre anchors.top: marco.top anchors.left: marco.right anchors.right: precio.left margin-left: 8 margin-top: 3 text-auto-resize: false phantom: true GameTextSmall id: nivel anchors.bottom: marco.bottom anchors.left: nombre.left anchors.right: precio.left margin-bottom: 3 text-auto-resize: false phantom: true GameNumber id: precio anchors.top: marco.top margin-top: 3 anchors.right: parent.right margin-right: 8 width: 60 text-align: right text-auto-resize: false phantom: true GameTextSmall id: estado anchors.bottom: marco.bottom anchors.right: parent.right margin-right: 8 margin-bottom: 3 width: 110 text-align: right text-auto-resize: false phantom: true MaestroDato < Panel height: 20 GameTextMuted id: clave anchors.left: parent.left anchors.verticalCenter: parent.verticalCenter width: 72 text-auto-resize: false phantom: true GameText id: valor anchors.left: clave.right anchors.right: parent.right anchors.verticalCenter: parent.verticalCenter text-auto-resize: false phantom: true MainWindow id: ventanaMaestro size: 680 480 text: Corvo, maestro de clase @onEscape: modules.game_maestro.cerrar() GameTextMuted id: meta anchors.top: parent.top anchors.left: parent.left width: 220 text-auto-resize: false CheckBox id: soloDisponibles anchors.verticalCenter: meta.verticalCenter anchors.right: marcoLista.right width: 112 text: Solo disponibles @onCheckChange: modules.game_maestro.alFiltrar(self:isChecked()) GamePanel id: marcoLista anchors.top: meta.bottom anchors.left: parent.left anchors.bottom: oro.top width: 340 margin-top: 8 margin-bottom: 8 ScrollablePanel id: lista anchors.top: marcoLista.top anchors.left: marcoLista.left anchors.bottom: marcoLista.bottom anchors.right: scroll.left margin: 1 vertical-scrollbar: scroll layout: type: verticalBox VerticalScrollBar id: scroll anchors.top: marcoLista.top anchors.right: marcoLista.right anchors.bottom: marcoLista.bottom margin: 1 step: 44 pixels-scroll: true GameParagraph id: vacia anchors.top: marcoLista.top anchors.left: marcoLista.left anchors.right: marcoLista.right margin: 16 text-align: center visible: false GameTextMuted id: oroEtiqueta anchors.left: parent.left anchors.verticalCenter: oro.verticalCenter text: Tu oro (encima y en el banco) GameNumber id: oro anchors.bottom: parent.bottom anchors.left: parent.left width: 340 height: 20 text-align: right text-auto-resize: false Panel id: ficha anchors.top: parent.top anchors.left: marcoLista.right anchors.right: parent.right anchors.bottom: parent.bottom margin-left: 16 GameCell id: marco size: 54 54 anchors.top: parent.top anchors.left: parent.left phantom: true UIWidget id: icono size: 48 48 anchors.centerIn: parent phantom: true GameTitle id: nombre anchors.top: marco.top anchors.left: marco.right anchors.right: parent.right margin-left: 12 margin-top: 8 height: 20 text-auto-resize: false GameTextMuted id: tipo anchors.top: nombre.bottom anchors.left: nombre.left anchors.right: parent.right margin-top: 4 text-auto-resize: false Panel id: datos anchors.top: marco.bottom anchors.left: parent.left anchors.right: parent.right margin-top: 16 layout: type: verticalBox fit-children: true UIWidget id: raya anchors.top: datos.bottom anchors.left: parent.left anchors.right: parent.right margin-top: 12 height: 1 background-color: $otmmo-border phantom: true GameParagraph id: texto anchors.top: raya.bottom anchors.left: parent.left anchors.right: parent.right margin-right: 8 margin-top: 12 color: $otmmo-text GameParagraph id: nota anchors.top: texto.bottom anchors.left: parent.left anchors.right: parent.right margin-right: 8 margin-top: 8 GameParagraph id: estado anchors.left: parent.left anchors.right: aprender.left anchors.verticalCenter: aprender.verticalCenter margin-right: 12 PrimaryButton id: aprender anchors.bottom: parent.bottom anchors.right: parent.right size: 110 26 text: Aprender @onClick: modules.game_maestro.aprender()