Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
etorth committed Jan 22, 2025
1 parent ab2455e commit 8a541a4
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 9 deletions.
57 changes: 57 additions & 0 deletions client/src/acutionboard.cpp
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,
}
{}
22 changes: 22 additions & 0 deletions client/src/acutionboard.hpp
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;
};
12 changes: 6 additions & 6 deletions client/src/imageboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
extern SDLDevice *g_sdlDevice;

ImageBoard::ImageBoard(
dir8_t argDir,
int argX,
int argY,
Widget::VarDir argDir,
Widget::VarOff argX,
Widget::VarOff argY,

Widget::VarSize argW,
Widget::VarSize argH,
Expand All @@ -26,9 +26,9 @@ ImageBoard::ImageBoard(

: Widget
{
argDir,
argX,
argY,
std::move(argDir),
std::move(argX),
std::move(argY),
0,
0,

Expand Down
6 changes: 3 additions & 3 deletions client/src/imageboard.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ class ImageBoard: public Widget
uint32_t m_color;

public:
ImageBoard(dir8_t,
int,
int,
ImageBoard(Widget::VarDir,
Widget::VarOff,
Widget::VarOff,

Widget::VarSize,
Widget::VarSize,
Expand Down

0 comments on commit 8a541a4

Please sign in to comment.