コード例 #1
0
    public void init(Rect r, string t, DyanimcButtonStyle s, int ts, Texture2D idle, Texture2D pressed)
    {
        winnerScale        = 0;
        newItemScale       = 0;
        winnerTargetScale  = 0;
        newItemTargetScale = 0;

        newItemTexture = assets.newTexture;
        winnerTexture  = assets.winnerTexture;



        content              = new GUIContent();
        content.text         = text;
        style                = null;
        idleButtonTexture    = idle;
        pressedButtonTexture = pressed;
        width                = r.width;
        height               = r.height;
        text     = t;
        textSize = ts;

        isActive  = true;
        styleType = s;
    }
コード例 #2
0
 public DynamicButton(AssetManager a, Rect r, string t, DyanimcButtonStyle s, int ts, void_function_DyanmicButton f, Texture2D idle, Texture2D pressed) : base(new Vector2(r.x, r.y))
 {
     assets = a;
     function_button_action = f;
     init(r, t, s, ts, idle, pressed);
 }
コード例 #3
0
 public DynamicButton(AssetManager a, Rect r, string t, DyanimcButtonStyle s, int ts, Texture2D idle, Texture2D pressed) : base(new Vector2(r.x, r.y))
 {
     assets = a;
     init(r, t, s, ts, idle, pressed);
 }