Exemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     Time.timeScale = 1;
     Ui1            = GameObject.Find("script").GetComponent <ui>();
     rb             = gameObject.GetComponent <Rigidbody>();
     teleport       = gameObject.transform.position;
 }
Exemplo n.º 2
0
 private void Start()
 {
     lineRenderer.SetPosition(0, nullPoint.position);
     lineRenderer.SetPosition(1, nullPoint.position);
     adventurerCanGoHere = false;
     adventurerScript    = FindObjectOfType <Adventurer>();
     ui = FindObjectOfType <ui>();
 }
Exemplo n.º 3
0
 public EditString(ui.Component n1, int n2, int n3, string n4, int n5)
 {
     this.n1 = n1;
     this.n2 = n2;
     this.n3 = n3;
     this.n4 = n4;
     this.n5 = n5;
 }
Exemplo n.º 4
0
    static void Main(string[] args)
    {
        System.Console.WriteLine("start up screen");
        ui userinterface = new ui();

        Application.Run(userinterface);
        System.Console.WriteLine("shutdown");
    }
Exemplo n.º 5
0
 void Start()
 {
     cam = Camera.main;
     cameraY = cam.transform.position.y;
     Screen.orientation = ScreenOrientation.Portrait;
     uiComp = FindUI();
     playerComp = FindPlayer();
     uiComp.addHearts();
 }
Exemplo n.º 6
0
 public FillPolygonPainter(ui.geom.Rectangle clip, int[] p1, int[] p2, int color, int alpha) : base(clip)
 {
     // TODO: Complete member initialization
     this.clip = clip;
     this.p1 = p1;
     this.p2 = p2;
     this.color = color;
     this.alpha = alpha;
 }
 public FillRadialGradientPainter(ui.geom.Rectangle clip, int startColor, int endColor, int x, int y, int width, int height):base(clip)
 {
     this.clip = clip;
     this.startColor = startColor;
     this.endColor = endColor;
     this.x = x;
     this.y = y;
     this.width = width;
     this.height = height;
 }
Exemplo n.º 8
0
 public void openMenu(ui menu)
 {
     for (byte i = 0; i < menus.Length; i++)
     {
         if (menus[i].open)
         {
             closeMenu(menus[i]);
         }
     }
     menu.Open();
 }
 public FillLinearGradientPainter(ui.geom.Rectangle clip, int startColor, int endColor, int x, int y, int width, int height, bool horizontal)
     : base(clip)
 {
     this.clip = clip;
     this.startColor = startColor;
     this.endColor = endColor;
     this.x = x;
     this.y = y;
     this.width = width;
     this.height = height;
     this.horizontal = horizontal;
 }
Exemplo n.º 10
0
        public void enter()
        {
            WriteLine("Welcome to the generic program. Please enter a number.");
            string input = ReadLine();

            int p = Convert.ToInt32(input);


            ui <int> ui = new ui <int>(p);

            ui.welcome();
            Console.ReadLine();
        }
Exemplo n.º 11
0
 protected override void saveImage(ui.Image image, java.io.OutputStream response, string format, float quality)
 {
     CanvasBitmapFileFormat fileFormat = CanvasBitmapFileFormat.Png;
     if (format.Equals(FORMAT_JPEG))
     {
         fileFormat = CanvasBitmapFileFormat.Jpeg;
     }
     CodenameOneImage img = (CodenameOneImage)image.getImage();
     CanvasBitmap cb = img.image;
     InMemoryRandomAccessStream ms = new InMemoryRandomAccessStream();
     cb.SaveAsync(ms, fileFormat, quality).AsTask().ConfigureAwait(false).GetAwaiter().GetResult(); ;
     ms.Seek(0);
     byte[] buf = new byte[ms.Size];
     DataReader dr = new DataReader(ms);
     dr.LoadAsync((uint)ms.Size).AsTask().ConfigureAwait(false).GetAwaiter().GetResult(); ;
     dr.ReadBytes(buf);
     response.write(buf);
 }
Exemplo n.º 12
0
 public override void saveImage(ui.Image image, java.io.OutputStream response, java.lang.String format, float quality)
 {
     CanvasBitmapFileFormat fileFormat = CanvasBitmapFileFormat.Png;
     if (format.equals(_fFORMAT_1JPEG))
     {
         fileFormat = CanvasBitmapFileFormat.Jpeg;
     }
     CodenameOneImage img = (CodenameOneImage)image.getImage();
     CanvasBitmap cb = img.image;
     InMemoryRandomAccessStream ms = new InMemoryRandomAccessStream();
     cb.SaveAsync(ms, fileFormat, quality).AsTask().ConfigureAwait(false).GetAwaiter().GetResult(); ;
     ms.Seek(0);
     byte[] buf = new byte[ms.Size];
     DataReader dr = new DataReader(ms);
     dr.LoadAsync((uint)ms.Size).AsTask().ConfigureAwait(false).GetAwaiter().GetResult(); ;
     dr.ReadBytes(buf);
     response.write(new _nArrayAdapter<sbyte>(SilverlightImplementation.toSByteArray(buf)));
 }
Exemplo n.º 13
0
 void Update()
 {
     if (!pt && rt)
     {
         for (int i = 0; i < hexys.Length; i++)
         {
             hexys [i].SendMessage("korektax");
         }
         uk = GameObject.Find("nick");
         uk.GetComponent <Text>().text = "Komputer";
         u         = GameObject.Find("tura").GetComponent <ui> ();
         u.zmienna = tc.ToString();
         for (int i = 0; i < ais.Length; i++)
         {
             ais [i].tura = true;
         }
         rt = false;
     }
     if (!pt && !rt)
     {
         int cont = 0;
         for (int i = 0; i < ais.Length; i++)
         {
             if (!ais [i].tura)
             {
                 cont++;
             }
             if (cont >= ais.Length)
             {
                 pt = true;
                 uk = GameObject.Find("nick");
                 uk.GetComponent <Text>().text = "Gracz";
                 u         = GameObject.Find("tura").GetComponent <ui> ();
                 u.zmienna = tc.ToString();
                 tc++;
             }
         }
     }
 }
 internal override void setClip(ui.geom.Rectangle clip)
 {
     this.clip = clip;
 }
Exemplo n.º 15
0
 // Start is called before the first frame update
 void Start()
 {
     Ui1               = GameObject.Find("script").GetComponent <ui>();
     parrent           = gameObject.transform.parent.gameObject;
     Screen.lockCursor = true;
 }
 public override void repaint(ui.animations.Animation n1)
 {
     if(n1 is global::com.codename1.ui.Form) {
         wipe();
     }
     base.repaint(n1);
 }
Exemplo n.º 17
0
 public void closeMenu(ui menu)
 {
     menu.Close();
 }
 public override bool isOpaque(ui.Image n1, java.lang.Object n2) {
     return ((CodenameOneImage)n1.getImage()).opaque;
 }
Exemplo n.º 19
0
 internal virtual void setClip(ui.geom.Rectangle clip)
 {
     if (clip == null)
     {
         return;
     }
     if (clip.getWidth() <= 0)
     {
        // System.Diagnostics.Debug.WriteLine("aaaaaaaaaaaaaaaaaaaa width");
         clip.setWidth(1);
     }
     if (clip.getHeight() <= 0)
     {
        // System.Diagnostics.Debug.WriteLine("aaaaaaaaaaaaaaaaaaaa height");
         clip.setHeight(1);
     }
     layer = graphics.CreateLayer(1, new Rect(
         clip.getX(),
         clip.getY(),
         clip.getWidth(),
         clip.getHeight()
     ));
 }
 public override object flipImageHorizontally(ui.Image n1, bool n2) {
     return base.flipImageHorizontally(n1, n2);
 }
 public override object flipImageVertically(ui.Image n1, bool n2) {
     return base.flipImageVertically(n1, n2);
 }
 public override object rotate90Degrees(ui.Image n1, bool n2) {
     return base.rotate90Degrees(n1, n2);
 }
 public override void setTransform(java.lang.Object n1, ui.Transform n2) {
     base.setTransform(n1, n2);
 }