diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-03-05 17:10:18 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-03-05 17:10:18 (GMT) |
| commit | 81f3114cb22592a8c09fa564db49fbea079f1328 (patch) | |
| tree | 47c0faf05e2dd2adfcdb965542b2012465591c63 /src/game/DecorationTool.h | |
| parent | 55acb6aa801f89f14ccc2ae469247149b19a806d (diff) | |
| download | powder-81f3114cb22592a8c09fa564db49fbea079f1328.zip powder-81f3114cb22592a8c09fa564db49fbea079f1328.tar.gz | |
Better sliders for Decoration editor
Diffstat (limited to 'src/game/DecorationTool.h')
| -rw-r--r-- | src/game/DecorationTool.h | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/src/game/DecorationTool.h b/src/game/DecorationTool.h index f6f08d4..5a11bc6 100644 --- a/src/game/DecorationTool.h +++ b/src/game/DecorationTool.h @@ -11,20 +11,29 @@ public: ToolType decoMode; + unsigned char Red; + unsigned char Green; + unsigned char Blue; + unsigned char Alpha; + DecorationTool(ToolType decoMode_, string name, int r, int g, int b): Tool(0, name, r, g, b), - decoMode(decoMode_) + decoMode(decoMode_), + Red(0), + Green(0), + Blue(0), + Alpha(0) { } virtual ~DecorationTool() {} virtual void Draw(Simulation * sim, Brush * brush, ui::Point position){ - sim->ApplyDecorationPoint(position.X, position.Y, 1, 1, colRed, colGreen, colBlue, 255, decoMode, brush); + sim->ApplyDecorationPoint(position.X, position.Y, 1, 1, Red, Green, Blue, Alpha, decoMode, brush); } virtual void DrawLine(Simulation * sim, Brush * brush, ui::Point position1, ui::Point position2) { - sim->ApplyDecorationLine(position1.X, position1.Y, position2.X, position2.Y, 1, 1, colRed, colGreen, colBlue, 255, decoMode, brush); + sim->ApplyDecorationLine(position1.X, position1.Y, position2.X, position2.Y, 1, 1, Red, Green, Blue, Alpha, decoMode, brush); } virtual void DrawRect(Simulation * sim, Brush * brush, ui::Point position1, ui::Point position2) { - sim->ApplyDecorationBox(position1.X, position1.Y, position2.X, position2.Y, colRed, colGreen, colBlue, 255, decoMode); + sim->ApplyDecorationBox(position1.X, position1.Y, position2.X, position2.Y, Red, Green, Blue, Alpha, decoMode); } virtual void DrawFill(Simulation * sim, Brush * brush, ui::Point position) { |
