This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
posPanelCentral = new SGUIComponent(); //para los group, area y window | |
CampoNombre = new STextField(); //para los textField |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void generarUI() { | |
W8KeyboardManager.clearLayout(); //por seguridad | |
posPanelCentral = new SGUIComponent(); //el panel central, contiene todo el formulario | |
//la posicion inicial es relativa a la pantalla ya que no tiene padre | |
posPanelCentral.Position = new Rect((Screen.width - anchoPanelCentral) / 2, (Screen.height - altoPanelCentral) / 4, anchoPanelCentral, altoPanelCentral); | |
posGrupoPuntaje = new SGUIComponent(); // un grupo que contiene la información del puntaje, no era necesario, pero sirve para explicar | |
posGrupoPuntaje.Parent = posPanelCentral; //ahora posGrupoPuntaje esta dentro de posPanelCentral | |
posGrupoPuntaje.Position = new Rect(10, 10, posPanelCentral.Position.width - 20, 80); //la posicion en relativa a posPanelCentral |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private void OnEnable() { | |
W8KeyboardManager.Show(); | |
} | |
private void OnDisable() { | |
W8KeyboardManager.Hide(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void OnGUI() { | |
GUILayout.BeginArea(posPanelCentral.Position, estilo.box); | |
//puntaje | |
GUILayout.BeginArea(posGrupoPuntaje.Position, estilo.box); | |
GUILayout.BeginVertical(); | |
GUILayout.EndVertical(); | |
GUILayout.EndArea(); | |
//nombre | |
GUILayout.BeginArea(posGrupoNombre.Position, estilo.box); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SmithKeyboardHelper.SKeyboardLayer teclado = new SmithKeyboardHelper.SKeyboardLayer(this.DXSwapChainBackgroundPanel,false); | |
//DXSwapChainBackgroundPanel es el frame donde unity de renderiza. | |
//el segundo componente activa el debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
update personas set updated_at = (select personas_23_dic.updated_at from personas_23_dic where DATE(personas.updated_at) = '2013-12-24' and personas.id = personas_23_dic.id) where exists (select * from personas_23_dic where personas_23_dic.id = personas.id and DATE(personas.updated_at) = '2013-12-24') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
[RequireComponent(typeof(SpriteRenderer))] | |
public class ParallaxBackground : MonoBehaviour { | |
public GameObject fondoInstancia; | |
public int clones=3; | |
public bool parallax=true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class ParallaxBackground : MonoBehaviour { | |
public GameObject fondoInstancia; | |
public int clones=3; | |
public bool FixedEnX=true; | |
public bool FixedEnY=true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define LIMIT 30 //Define el limite | |
#define M 100 //Define el otro limite (?) | |
typedef struct //Definiendo la estructura | |
{ | |
int dni; |