Skip to content

Commit

Permalink
* added small arrow next to pickWorldButton
Browse files Browse the repository at this point in the history
* changed Base property from setBaseButton to pickWorldButton
  • Loading branch information
fiezi committed Dec 15, 2011
1 parent d4619c9 commit 6d99520
Show file tree
Hide file tree
Showing 10 changed files with 1,531 additions and 1,478 deletions.
Binary file modified Moviesandbox.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion classes/actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ createMemberID("PIVOTLOCATION", &pivotLocation, this,true,"17VectorInputButton")
createMemberID("TRANSFORMMATRIX",&transformMatrix,this,true);
createMemberID("SCALEMATRIX",&scaleMatrix,this,false);

createMemberID("BASE",&base,this,true,"13SetBaseButton");
createMemberID("BASE",&base,this,true,"15PickWorldButton");
createMemberID("BASEMATRIX",&baseMatrix,this,false);
createMemberID("BASENODE",&baseNode, this,false);

Expand Down
2 changes: 1 addition & 1 deletion classes/character.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ void Character::registerProperties(){
SkeletalActor::registerProperties();
createMemberID("IDLEACTIONNAME",&idleActionName,this);
createMemberID("IDLEANIMTIMESCALE",&idleAnimTimeScale,this);
createMemberID("WALKTARGET",&walkTarget,this);
createMemberID("WALKTARGET",&walkTarget,this,"15PickWorldButton");
createMemberID("LOOKTARGET",&lookTarget,this);
createMemberID("WALKSPEED",&walkSpeed,this);
createMemberID("TURNSPEED",&turnSpeed,this);
Expand Down
16 changes: 16 additions & 0 deletions classes/pickWorldButton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,22 @@ void PickWorldButton::setup(){
BasicButton::setup();

}


void PickWorldButton::drawPlane(){

float oldScaleX= scale.x;
scale.x-=18;
BasicButton::drawPlane();
scale.x=oldScaleX;

Vector4f tfColor=color;
renderer->setupShading("buttonTexture");
renderer->setupTexturing("icon_pickWorld",this);

//draw a little square right next to the button
renderer->drawPlane(scale.x -16.0,0.0,scale.x,scale.y, color );
}

void PickWorldButton::update(double deltaTime){

Expand Down
1 change: 1 addition & 0 deletions classes/pickWorldButton.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class PickWorldButton: public BasicButton{
virtual ~PickWorldButton();

virtual void setup();
virtual void drawPlane();
virtual void update(double deltaTime);

virtual void mouseOver();
Expand Down
4 changes: 2 additions & 2 deletions classes/setBaseButton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ void SetBaseButton::update(double deltaTime){

BasicButton::update(deltaTime);
}

void SetBaseButton::mouseOver(){

void SetBaseButton::mouseOver(){

BasicButton::mouseOver();
if ( ((Actor*)parent)->base){
Expand Down
1 change: 1 addition & 0 deletions resources/basic.library
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

<Texture textureID="icon_base" filename="icon_base.tga" bAlpha="1" bWrap="0" />
<Texture textureID="icon_setBase" filename="icon_setBase.tga" bAlpha="1" bWrap="0" />
<Texture textureID="icon_pickWorld" filename="icon_pickWorld.tga" bAlpha="1" bWrap="0" />
<Texture textureID="icon_select" filename="icon_select.tga" bAlpha="1" bWrap="0" />
<Texture textureID="icon_advanced" filename="icon_advanced.tga" bAlpha="1" bWrap="0"/>

Expand Down
Binary file added resources/icons/icon_pickWorld.tga
Binary file not shown.
2,983 changes: 1,509 additions & 1,474 deletions resources/icons/moviesandboxIcons_vallejo.ai

Large diffs are not rendered by default.

Binary file modified resources/icons/msbIcons_vallejo.psd
Binary file not shown.

0 comments on commit 6d99520

Please sign in to comment.