// 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; }
private void Start() { lineRenderer.SetPosition(0, nullPoint.position); lineRenderer.SetPosition(1, nullPoint.position); adventurerCanGoHere = false; adventurerScript = FindObjectOfType <Adventurer>(); ui = FindObjectOfType <ui>(); }
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; }
static void Main(string[] args) { System.Console.WriteLine("start up screen"); ui userinterface = new ui(); Application.Run(userinterface); System.Console.WriteLine("shutdown"); }
void Start() { cam = Camera.main; cameraY = cam.transform.position.y; Screen.orientation = ScreenOrientation.Portrait; uiComp = FindUI(); playerComp = FindPlayer(); uiComp.addHearts(); }
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; }
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; }
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(); }
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); }
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))); }
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; }
// 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); }
public void closeMenu(ui menu) { menu.Close(); }
public override bool isOpaque(ui.Image n1, java.lang.Object n2) { return ((CodenameOneImage)n1.getImage()).opaque; }
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); }