-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
88 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#include "pngtexdb.hpp" | ||
#include "processrun.hpp" | ||
#include "acutionboard.hpp" | ||
|
||
extern PNGTexDB *g_progUseDB; | ||
extern SDLDevice *g_sdlDevice; | ||
|
||
AcutionBoard::AcutionBoard( | ||
Widget::VarDir argDir, | ||
Widget::VarOff argX, | ||
Widget::VarOff argY, | ||
|
||
ProcessRun *argProc, | ||
|
||
Widget * argParent, | ||
bool argAutoDelete) | ||
|
||
: Widget | ||
{ | ||
std::move(argDir), | ||
std::move(argX), | ||
std::move(argY), | ||
|
||
0, | ||
0, | ||
|
||
{}, | ||
|
||
argParent, | ||
argAutoDelete | ||
} | ||
|
||
, m_runProc(argProc) | ||
, m_background | ||
{ | ||
DIR_UPLEFT, | ||
0, | ||
0, | ||
|
||
{}, | ||
{}, | ||
|
||
[](const ImageBoard *) -> SDL_Texture * | ||
{ | ||
return g_progUseDB->retrieve(0X00001400); | ||
}, | ||
|
||
false, | ||
false, | ||
false, | ||
|
||
colorf::WHITE + colorf::A_SHF(0XFF), | ||
|
||
this, | ||
false, | ||
} | ||
{} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#pragma once | ||
#include "widget.hpp" | ||
#include "imageboard.hpp" | ||
|
||
class ProcessPrun; | ||
class AcutionBoard: public Widget | ||
{ | ||
private: | ||
ProcessRun *m_runProc; | ||
|
||
private: | ||
ImageBoard m_background; | ||
|
||
public: | ||
AcutionBoard(Widget::VarDir, Widget::VarOff, Widget::VarOff, ProcessRun *, Widget * = nullptr, bool = false); | ||
|
||
// public: | ||
// void drawEx(int, int, int, int, int, int) const override; | ||
// | ||
// public: | ||
// bool processEventDefault(const SDL_Event &, bool) override; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters