public TCheckBoxOption ( |
||
structOptionsMain | ||
structCheckBox | ||
리턴 | System |
public TCheckBoxOption(Game1.StructOptionsMain structOptionsMain, StructCheckBox structCheckBox)
{
//GRAPHICS
this.graphics = structOptionsMain.Graphics;
//TEXTURES
this.txCheckedBox = structCheckBox.TxCheckedBox;
this.txUnCheckedBox = structCheckBox.TxUnCheckedBox;
if (stateCheckBoxLeft)
{
this.txCheckBoxLeft = txCheckedBox;
this.txCheckBoxRight = txUnCheckedBox;
}
else
{
stateCheckBoxLeft = true;
this.txCheckBoxLeft = txUnCheckedBox;
this.txCheckBoxRight = txCheckedBox;
}
//TEXTURES POSITIONS
this.PosCheckBoxLeft = structCheckBox.PosCheckBoxLeft;
this.PosCheckBoxRight = structCheckBox.PosCheckBoxRight;
//TEXTURES SIZES
this.vecSizeCheckBox = structCheckBox.VecSizeCheckBox;
//COLOUR
this.col = Color.White;
//INITIALIZE
Init();
}
TCheckBoxOption::TCheckBoxOption ( GraphicsDeviceManager graphics, Microsoft.Xna.Framework.Graphics.Texture2D txCheckedBox, Microsoft.Xna.Framework.Graphics.Texture2D txUnCheckedBox, Vector2 posLeftCheckBox, Vector2 posRightCheckBox, Vector2 vecSize, bool stateCheckBoxLeft, Color col ) : System |