// OT-MMO: fotos del juego (game_fotos.lua). Estilo VALDREN: ValdrenVentana (marco fino de hierro y oro) y ValdrenBoton, // importados de /game_viaje/valdren. La foto manda: ocupa lo ancho de la ventana sobre fondo pizarra, el resto es una // línea de controles. Oro #C7A86B solo en lo que se pulsa y en la foto colgada. FotoImagen < UIWidget background-color: #10161C border-width: 1 border-color: #39444C image-fixed-ratio: true image-smooth: true FotoEtiqueta < Label ttf-font: geist ttf-font-size: 11 color: #9AA7AE text-auto-resize: true FotoBotonSec < UIButton height: 30 ttf-font: geistsemibold ttf-font-size: 13 color: #E8D3A2 background-color: alpha border-width: 1 border-color: #C7A86B80 width: 112 click-sound: 2774 $hover !disabled: background-color: #C7A86B1F border-color: #C7A86B $pressed !disabled: text-offset: 0 1 $disabled: color: #9AA7AE80 border-color: #39444C FotoBotonTexto < UIButton height: 30 ttf-font: geist ttf-font-size: 13 color: #9AA7AE background-color: alpha text-auto-resize: true padding-left: 6 padding-right: 6 $hover !disabled: color: #E8D3A2 $disabled: color: #9AA7AE60 FotoBotonPeligro < FotoBotonTexto $hover !disabled: color: #DC6B6B // Fila de «Mis fotos»: punto de estado, título y fecha · estado. Marca dorada a la izquierda en la elegida. FotoFila < UIWidget height: 46 focusable: false change-cursor-image: true cursor: pointer background-color: alpha border-width: 1 border-color: alpha $hover !on: background-color: #E2E5E60D $on: background-color: #232C32 border-color: #C7A86B UIWidget id: punto anchors.left: parent.left anchors.verticalCenter: parent.verticalCenter margin-left: 10 size: 8 8 phantom: true Label id: titulo anchors.top: parent.top anchors.left: punto.right anchors.right: colgada.left margin-top: 7 margin-left: 10 margin-right: 6 height: 16 ttf-font: geistsemibold ttf-font-size: 13 color: #E2E5E6 phantom: true Label id: sub anchors.top: titulo.bottom anchors.left: titulo.left anchors.right: parent.right margin-top: 2 margin-right: 8 height: 15 ttf-font: geist ttf-font-size: 11 color: #9AA7AE phantom: true Label id: colgada anchors.top: parent.top anchors.right: parent.right margin-top: 8 margin-right: 8 ttf-font: geist ttf-font-size: 11 color: #C7A86B text: en el marco text-auto-resize: true phantom: true visible: false // -- Vista previa al hacer la foto --------------------------------------------------------------------------------- FotoVistaPrevia < ValdrenVentana id: fotoVista size: 620 556 text: Tu foto @onEscape: modules.game_fotos.descartarFoto() FotoImagen id: imagen anchors.top: parent.top anchors.left: parent.left anchors.right: parent.right height: 322 CheckBox id: interfaz anchors.top: imagen.bottom anchors.left: parent.left margin-top: 12 width: 200 text: Con la interfaz @onCheckChange: modules.game_fotos.repetirFoto(self:isChecked()) FotoEtiqueta id: pista anchors.verticalCenter: interfaz.verticalCenter anchors.right: parent.right text: La tecla de la foto se cambia en Opciones > Teclas. FotoEtiqueta id: etiquetaTitulo anchors.top: interfaz.bottom anchors.left: parent.left margin-top: 16 text: Título (opcional) TextEdit id: titulo anchors.top: etiquetaTitulo.bottom anchors.left: parent.left anchors.right: parent.right margin-top: 4 height: 28 padding-left: 8 text-offset: 0 6 ttf-font-size: 13 max-length: 60 Label id: estado anchors.bottom: guardar.top anchors.left: parent.left anchors.right: parent.right margin-bottom: 12 height: 30 text-wrap: true ttf-font: geist ttf-font-size: 12 color: #9AA7AE FotoBotonTexto id: mias anchors.bottom: parent.bottom anchors.left: parent.left margin-left: -6 text: Mis fotos @onClick: modules.game_fotos.misFotos() ValdrenBoton id: guardar anchors.bottom: parent.bottom anchors.right: parent.right width: 132 text: Guardar @onClick: modules.game_fotos.guardarFoto() FotoBotonSec id: descartar anchors.bottom: parent.bottom anchors.right: guardar.left margin-right: 10 text: Descartar @onClick: modules.game_fotos.descartarFoto() FotoEtiqueta id: nota anchors.bottom: guardar.top anchors.left: parent.left anchors.right: parent.right margin-bottom: 12 text-auto-resize: false height: 30 text-wrap: true text: Se guarda en tu personaje y puedes colgarla en un marco de tu casa. En la galería de la web sale cuando el staff la aprueba. // -- Elegir foto (marco de tu casa) / Mis fotos -------------------------------------------------------------------- FotoElegir < ValdrenVentana id: fotoElegir size: 760 540 text: Mis fotos @onEscape: modules.game_fotos.cerrarElegir() FotoEtiqueta id: cuantas anchors.top: parent.top anchors.left: parent.left color: #9AA7AE ScrollablePanel id: lista anchors.top: cuantas.bottom anchors.left: parent.left anchors.bottom: parent.bottom margin-top: 8 width: 256 vertical-scrollbar: barraLista layout: type: verticalBox spacing: 2 VerticalScrollBar id: barraLista anchors.top: lista.top anchors.bottom: lista.bottom anchors.left: lista.right margin-left: 2 width: 8 step: 48 pixels-scroll: true Label id: sinFotos anchors.top: lista.top anchors.left: lista.left anchors.right: lista.right margin-top: 12 height: 80 text-wrap: true ttf-font: geist ttf-font-size: 12 color: #9AA7AE text: Aún no tienes fotos. Pulsa la tecla de la foto (Ctrl+Mayús+S) donde quieras y guárdala. visible: false Panel id: detalle anchors.top: parent.top anchors.left: barraLista.right anchors.right: parent.right anchors.bottom: parent.bottom margin-left: 18 FotoImagen id: imagen anchors.top: parent.top anchors.left: parent.left anchors.right: parent.right height: 260 Label id: vacio anchors.centerIn: imagen ttf-font: geist ttf-font-size: 12 color: #9AA7AE text: Elige una foto de la lista. text-auto-resize: true Label id: titulo anchors.top: imagen.bottom anchors.left: parent.left anchors.right: parent.right margin-top: 12 height: 22 ttf-font: geistsemibold ttf-font-size: 15 color: #E8D3A2 Label id: nota anchors.top: titulo.bottom anchors.left: parent.left anchors.right: parent.right margin-top: 4 height: 34 text-wrap: true ttf-font: geist ttf-font-size: 12 color: #9AA7AE ValdrenBoton id: colgar anchors.bottom: parent.bottom anchors.right: parent.right width: 176 text: Colgar en el marco @onClick: modules.game_fotos.colgarElegida() FotoBotonSec id: quitar anchors.bottom: parent.bottom anchors.right: colgar.left margin-right: 10 width: 132 text: Quitar la foto @onClick: modules.game_fotos.quitarDelMarco() FotoBotonPeligro id: borrar anchors.bottom: parent.bottom anchors.left: detalle.left margin-left: -6 text: Borrar @onClick: modules.game_fotos.borrarElegida() // -- Ver la foto de un marco --------------------------------------------------------------------------------------- FotoVisor < ValdrenVentana id: fotoVisor size: 680 530 text: Foto @onEscape: modules.game_fotos.cerrarVisorFoto() FotoImagen id: imagen anchors.top: parent.top anchors.left: parent.left anchors.right: parent.right anchors.bottom: cerrar.top margin-bottom: 14 Label id: cargando anchors.centerIn: imagen ttf-font: geist ttf-font-size: 12 color: #9AA7AE text: Cargando la foto... text-auto-resize: true FotoEtiqueta id: pie anchors.verticalCenter: cerrar.verticalCenter anchors.left: parent.left ttf-font-size: 12 FotoBotonSec id: cerrar anchors.bottom: parent.bottom anchors.right: parent.right text: Cerrar @onClick: modules.game_fotos.cerrarVisorFoto()