} ///@property(readwrite,assign) bool usingStrings; //public void SetActionDone(bool inThing) {actionDone = inThing;}///@property(readwrite,assign) bool actionDone; public FrontEndQuery() { //if (!base.init()) return null; unityText = null; textTexture = null; for (int i = 0; i < (int)QueryButton.kNumButtonsOnQuery; i++) { button[i] = new FrontEndButton(i); } for (int i = 0; i < (int)Enum.kMaxFunnyWordsInQuery; i++) { funnyWord[i] = null; } for (int i = 0; i < (int)Enum.kMaxCentralButtonsInQuery; i++) { buttonText[i] = null; } dimZob = new Zobject(); backdrop = new Zobject(); text = new Zobject(); chosenButton = (QueryButton)(-1); noDimZob = false; wordScale = 0.42f; wordGap = 32.0f; wordOffset = 0.0f; myColour = Constants.kColourLightGreen; usingStrings = false; //return this; }
public void InitialiseMovingObject(ZbarInfoMoving info) { type = BarType.e_MovingObject; fillLevel = 0; fillMaximum = 100; displayFillLevel = 0; startPosition = info.startPosition; endPosition = info.endPosition; position = startPosition; if (zobject == null) { zobject = new Zobject(); } Zobject.ZobjectInfo zInfo = new Zobject.ZobjectInfo(); zInfo.position = position; zInfo.texture = info.texture[0]; zInfo.startState = ZobjectState.kZobjectShown; zInfo.isMapObject = false; zobject.Initialise(zInfo); currentAnim = 0; inTextures[0] = info.texture[0]; inTextures[1] = info.texture[1]; inTextures[2] = info.texture[2]; }
public void Dealloc() { if (textTexture != null) { textTexture.Dealloc(); textTexture = null; } if (unityText != null) { unityText.Dealloc(); unityText = null; } if (dimZob != null) { dimZob.Dealloc(); dimZob = null; } if (backdrop != null) { backdrop.Dealloc(); backdrop = null; } if (text != null) { text.Dealloc(); text = null; } for (int i = 0; i < (int)QueryButton.kNumButtonsOnQuery; i++) { if (button[i] != null) { button[i].Dealloc(); button[i] = null; } } for (int i = 0; i < (int)Enum.kMaxFunnyWordsInQuery; i++) { if (funnyWord[i] != null) { funnyWord[i].Dealloc(); funnyWord[i] = null; } } for (int i = 0; i < (int)Enum.kMaxCentralButtonsInQuery; i++) { if (buttonText[i] != null) { buttonText[i].Dealloc(); buttonText[i] = null; } } }
public Ztransition() { // //if (!base.init()) return null; this.Reset(); zobject = new Zobject(); spinningWord = new Zobject(); pTexture = null; //return this; }
public AppleWon() { ////if (!base.init()) return null; for (int i = 0; i < 3; i++) { apple[i] = new Zobject(); } ////return this; }
public ZRaceMeter() { //if (!base.init()) return null; for (int team = 0; team < (int)Enum.kMaxNumTeams; team++) { pMarker[team] = null; } pRaceTrack = null; pRaceTrackLowerHalf = null; //return this; }
public SlideInCharacter() { //if (!base.init()) return null; speechBubble = new Zobject(); character = new Zobject(); for (int i = 0; i < 2; i++) { commentLine[i] = new FunnyWord(); } //return this; }
} ////@property(readwrite,assign) FrontEndButton* doneButton; public SpeedBoostScreen() { //if (!base.init()) return null; speedObject = new Zobject(); sheepPic = new Zobject(); infoBubbleBackground = new Zobject(); for (int i = 0; i < (int)Enum.kNumCommentLines; i++) { commentLine[i] = new FunnyWord(); } doneButton = new FrontEndButton(0); //return this; }
public void InitialiseP1(FrontEnd.ButtonInfo buttonInfo, int inShowStyle) { this.SetDefaults(); sparklesPosition = 0; Zobject.ZobjectInfo info = new Zobject.ZobjectInfo(); info.position = buttonInfo.position; info.texture = buttonInfo.texture; normalTexture = info.texture; info.startState = ZobjectState.kZobjectHidden; info.isMapObject = false; zobject.Initialise(info); zobject.SetShowStyle(inShowStyle); zobject.SetThrobSize(0.1f); zobject.SetThrobTime(0.16f); position = buttonInfo.position; if (buttonInfo.texture != null) { width = (float)(buttonInfo.texture).pixelsWide; height = (float)(buttonInfo.texture).pixelsHigh; } if (Globals.g_main.usingTextureResolution == TextureResolutionEnum.kTextureResolution_High) { width /= 2.0f; height /= 2.0f; } goToScreen = buttonInfo.goToScreen; zobject.SetAtlas(null); //buttonInfo.textureLabel = null; if (buttonInfo.textureLabel != null) { if (zobjectLabel == null) { zobjectLabel = new Zobject(); } info.texture = buttonInfo.textureLabel; zobjectLabel.Initialise(info); zobjectLabel.SetShowStyle(inShowStyle); } }
public void AddLabelP1(Texture2D_Ross inTex, CGPoint inOffset) { labelOffset = inOffset; if (zobjectLabel == null) { zobjectLabel = new Zobject(); } Zobject.ZobjectInfo info = new Zobject.ZobjectInfo(); info.texture = inTex; info.startState = ZobjectState.kZobjectHidden; zobjectLabel.Initialise(info); zobjectLabel.SetShowStyle(zobject.showStyle); zobjectLabel.SetHideStyle(zobject.hideStyle); zobjectLabel.SetWaitToShow(zobject.waitToShow); CGPoint labePos = Utilities.CGPointMake(position.x + labelOffset.x, position.y + labelOffset.y); zobjectLabel.SetScreenPosition(labePos); zobjectLabel.SetState(ZobjectState.kZobjectHidden); }
// public FrontEndButton() // { // return this.init(0); // } public void Dealloc() { if (zobjectLabel != null) { zobjectLabel.Dealloc(); zobjectLabel = null; } if (hangingButton != null) { hangingButton.Dealloc(); hangingButton = null; } if (zobject != null) { zobject.Dealloc(); zobject = null; } }
} ///@property(readwrite,assign) CGPoint position; public FrontEndButton(int buttonId) { //if (!base.init()) return null; hangingButton = null; zobjectLabel = null; goToScreen = FrontEndScreenEnum.kFrontEndScreen_Invalid; myId = buttonId; zobject = new Zobject(); state = ButtonState.EInactive; isClickable = true; actionId = FrontEndActions.kFrontEndAction_None; soundEffectId = (int)Audio.Enum1.kSoundEffect_ButtonPress; flagClicked = false; clickedOneFrame = false; wasPressed = false; isDisabled = false; labelOffset = Utilities.CGPointMake(0, 0); //return this; }
public void FirstInitialisation(ZRaceMeterData inData) { Globals.Assert(inData.numTeams <= (int)Enum.kMaxNumTeams); numTeams = inData.numTeams; Zobject.ZobjectInfo info = new Zobject.ZobjectInfo(); info.isMapObject = false; info.startState = ZobjectState.kZobjectShown; info.position = inData.position; for (int team = 0; team < numTeams; team++) { if (pMarker[team] == null) { pMarker[team] = new Zobject(); } info.texture = null; (pMarker[team]).Initialise(info); (pMarker[team]).SetAtlas(inData.atlas); (pMarker[team]).SetSubTextureId(inData.subtextureId[team]); pMarker[team].myAtlasBillboard.SetRenderQueue(11000); pMarker[team].myAtlasBillboard.myObject.layer = LayerMask.NameToLayer("guistuff"); } if (pRaceTrack == null) { pRaceTrack = new Zobject(); pRaceTrackLowerHalf = new Zobject(); } info.texture = null; pRaceTrack.Initialise(info); pRaceTrack.SetAtlas(inData.atlas); pRaceTrack.SetSubTextureId(1); pRaceTrackLowerHalf.Initialise(info); pRaceTrackLowerHalf.SetAtlas(inData.atlas); pRaceTrackLowerHalf.SetSubTextureId(2); pRaceTrack.myAtlasBillboard.SetRenderQueue(11000); pRaceTrackLowerHalf.myAtlasBillboard.SetRenderQueue(11000); pRaceTrack.myAtlasBillboard.myObject.layer = LayerMask.NameToLayer("guistuff"); pRaceTrackLowerHalf.myAtlasBillboard.myObject.layer = LayerMask.NameToLayer("guistuff"); }
} ////@property(readwrite,assign) ZAtlas* myAtlas; public Zscore() { // //if (!base.init()) return null; myAtlas = null; orientationButton = null; positionButton = null; for (int i = 0; i < (int)Enum.kMaxNumScoreDigits; i++) { zobject[i] = new Zobject(); } rotationWholeWord = 0.0f; scale = 1; state = ZscoreState.e_Hidden; prevScore = -1; decimalPoint = -1; digitWidth = 31; defaultColour = Constants.kColourWhite; dontDisplayLeadingZeros = false; xDigit[0] = 10.5f; xDigit[1] = 6.5f; xDigit[2] = 10.0f; xDigit[3] = 10.0f; xDigit[4] = 10.0f; xDigit[5] = 10.0f; xDigit[6] = 10.0f; xDigit[7] = 8.5f; xDigit[8] = 10.0f; xDigit[9] = 10.0f; xDigit[10] = 6.0f; timeBetweenShowingDigits = 0.05f; for (int i = 0; i < 11; i++) { xDigit[i] *= 3.0f; } // //return this; }
} ////@property(readwrite,assign) Texture2D* pBackTexture; public void SetZobject(Zobject inThing) { zobject = inThing; } ////@property(readwrite,assign) Zobject* zobject;
} ///@property(readwrite,assign) float wordOffset; public void SetBackdrop(Zobject inThing) { backdrop = inThing; } ////@property(readwrite,assign) Zobject* backdrop;