mirror of
https://github.com/zeldaret/ss
synced 2026-06-11 05:08:16 -04:00
Introduce mVec2_c
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
#include "d/d_tag_processor.h"
|
||||
#include "d/lyt/d_textbox.h"
|
||||
#include "d/lyt/msg_window/d_lyt_msg_window_common.h"
|
||||
#include "m/m_vec.h"
|
||||
#include "sized_string.h"
|
||||
#include "toBeSorted/lyt_vec2f.h"
|
||||
|
||||
struct dLytMsgWindowCharData {
|
||||
/* 0x00 */ f32 posX;
|
||||
@@ -82,7 +82,7 @@ public:
|
||||
|
||||
void build();
|
||||
void remove();
|
||||
void drawTextBlur(dLytTextLight *thing, LytVec2f size, u8 alpha);
|
||||
void drawTextBlur(dLytTextLight *thing, mVec2_c size, u8 alpha);
|
||||
void reset();
|
||||
|
||||
dLytMsgWindowCharData *getCharData() {
|
||||
|
||||
@@ -6,10 +6,10 @@
|
||||
#include "d/lyt/d2d.h"
|
||||
#include "d/lyt/d_textbox.h"
|
||||
#include "d/lyt/msg_window/d_lyt_msg_window_common.h"
|
||||
#include "m/m_vec.h"
|
||||
#include "nw4r/lyt/lyt_pane.h"
|
||||
#include "s/s_State.hpp"
|
||||
#include "sized_string.h"
|
||||
#include "toBeSorted/lyt_vec2f.h"
|
||||
|
||||
class dLytMsgWindowDemo_c : public dLytMsgWindowSubtype {
|
||||
public:
|
||||
@@ -50,7 +50,7 @@ private:
|
||||
/* 0x4CC */ nw4r::lyt::Pane *mpPane;
|
||||
/* 0x4D0 */ dTextBox_c *mpTextboxes[2];
|
||||
/* 0x4D8 */ dTagProcessor_c *mpTagProcessor;
|
||||
/* 0x4DC */ LytVec2f mOffsets[2];
|
||||
/* 0x4DC */ mVec2_c mOffsets[2];
|
||||
/* 0x4EC */ dLytTextLight mText;
|
||||
/* 0x5C8 */ MsgWindowBlurRelated mBlurRelated;
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
#include "d/lyt/d_lyt_common_a_btn.h"
|
||||
#include "d/lyt/d_textbox.h"
|
||||
#include "d/lyt/msg_window/d_lyt_msg_window_common.h"
|
||||
#include "m/m_vec.h"
|
||||
#include "s/s_State.hpp"
|
||||
#include "toBeSorted/lyt_vec2f.h"
|
||||
|
||||
class dLytMsgWindowGet_c : public dLytMsgWindowSubtype {
|
||||
public:
|
||||
@@ -57,7 +57,7 @@ private:
|
||||
/* 0x0528 */ dTextBox_c *mpTextboxes[2];
|
||||
/* 0x0530 */ nw4r::lyt::Pane *mpPanes[6];
|
||||
/* 0x0548 */ dTagProcessor_c *mpTagProcessor;
|
||||
/* 0x054C */ LytVec2f mOffset;
|
||||
/* 0x054C */ mVec2_c mOffset;
|
||||
/* 0x0554 */ dLytCommonABtn_c mBtn;
|
||||
/* 0x06E0 */ dLytTextLight mText;
|
||||
/* 0x07C4 */ MsgWindowBlurRelated mBlurRelated;
|
||||
|
||||
@@ -136,6 +136,11 @@ public:
|
||||
static const Vector2f ex;
|
||||
static const Vector2f ey;
|
||||
|
||||
void set(f32 fx, f32 fy) {
|
||||
x = fx;
|
||||
y = fy;
|
||||
}
|
||||
|
||||
Vector2f operator-(const Vector2f &v) {
|
||||
return Vector2f(x - v.x, y - v.y);
|
||||
}
|
||||
|
||||
@@ -254,4 +254,14 @@ public:
|
||||
static mVec3_c Ez;
|
||||
};
|
||||
|
||||
class mVec2_c : public EGG::Vector2f {
|
||||
public:
|
||||
mVec2_c() {}
|
||||
~mVec2_c() {}
|
||||
|
||||
mVec2_c(const mVec2_c &other) {
|
||||
set(other.x, other.y);
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
#ifndef D_LYT_VEC2F_H
|
||||
#define D_LYT_VEC2F_H
|
||||
|
||||
#include "common.h"
|
||||
|
||||
// This better not be mVec2_c or something stupid
|
||||
struct LytVec2f {
|
||||
LytVec2f() {}
|
||||
~LytVec2f() {}
|
||||
|
||||
LytVec2f(const LytVec2f &other) {
|
||||
set(other.x, other.y);
|
||||
}
|
||||
void set(f32 fx, f32 fy) {
|
||||
x = fx;
|
||||
y = fy;
|
||||
}
|
||||
|
||||
f32 x;
|
||||
f32 y;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user