summaryrefslogtreecommitdiff
path: root/Runtime/GUI/UI9Slicing.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-11-03 18:52:30 +0800
committerchai <chaifix@163.com>2021-11-03 18:52:30 +0800
commit08ddd44b634d4da78edd0964f539a310544c7883 (patch)
tree108317d9138c3e8a19f3cc3f2ffcfba4768f22d5 /Runtime/GUI/UI9Slicing.h
parent6f62a3d5ad405dbab5ac031fb8eeb03bdb395904 (diff)
! UI9Slicing
Diffstat (limited to 'Runtime/GUI/UI9Slicing.h')
-rw-r--r--Runtime/GUI/UI9Slicing.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Runtime/GUI/UI9Slicing.h b/Runtime/GUI/UI9Slicing.h
index c88ba05..98d8cf8 100644
--- a/Runtime/GUI/UI9Slicing.h
+++ b/Runtime/GUI/UI9Slicing.h
@@ -12,14 +12,14 @@ enum ESlicing
class UI9Slicing : public UIMesh
{
public:
- UI9Slicing(ESlicing mode, Vector2 horizontal, Vector2 vertical, Vector2 texPixelSize, Vector2 size)/*throw UIMeshException*/;
+ UI9Slicing(int mode, Vector2 horizontal, Vector2 vertical, Vector2 texPixelSize, Vector2 size)/*throw UIMeshException*/;
void Draw() override;
private:
- ESlicing m_Slicing;
- Vector2 m_Horizontal; // 左右两条切割线到左边和右边的距离
- Vector2 m_Vertical; // 同上
+ int m_Slicing;
+ Vector2 m_Horizontal; // 左右两条切割线到左边和右边的距离
+ Vector2 m_Vertical; // 上下两条切割线到上下的距离
Vector2 m_TexSize;
Vector2 m_Size;
};