19class GxToolBackGroundCollisionSet : public GxToolResourceEditBase
32 static constexpr u32 OFFSET_HITFLAG_LIST = 575;
34 static constexpr u32 OFFSET_FILE_PATH = 100;
36 static constexpr u32 OFFSET_BUTTON_PANEL = 70;
38 static constexpr u32 OFFSET_FILTER_PANEL = 160;
44 class GxGuiFormControl;
45 class GxGuiPropertyTableHitFlag;
54 GxToolBackGroundCollisionSet(
void);
56 void cleanup(
void)
override;
58 b32 initialize(
void )
override;
67 void save(
void)
override;
70 void setResource(
GxResBase* pRes)
override;
73 void setResourceModel(
GxResModel* pResModel );
82 void setResourceBackgroundCollisionSetXml( GxResBackgroundCollisionSetXml* pResBackgroundCollisionSetXml );
86 void onCreate(
void)
override;
89 void update(
void)
override;
92 void createMaterialToHitFlagPresetData(
void);
95 void checkMaterialNameForBackgroundCollisionSetData(
void);
99 void createUnitModel(
void);
102 b32 createGuiFilePath(
void);
105 void createGuiBackgroundHitFlagTable(
void);
108 void eventButtonCreateBackgroundHitFlagSetting(
void);
111 void createBackgroundHitFlagSettingResource(
void);
114 void updateMaterialNameListForPresetTable(
void);
117 void updateAttributeList(
void);
126 constexpr void getPropertyResModel(
void*
const pValue) { *
static_cast<GxResModel**
>(pValue) = _pResModel; }
129 void setPropertyResModel(
const void*
const pValue);
132 constexpr void getPropertyGxResCollisionMesh(
void*
const pValue) { *
static_cast<GxResCollisionMesh**
>(pValue) = _pResCollisionMesh; }
135 void setPropertyGxResCollisionMesh(
const void*
const pValue);
138 constexpr void getPropertyGxResBackgroundCollisionHitFlag(
void*
const pValue) { *
static_cast<GxResHitFlagPreset**
>(pValue) = _pResHitFlagPreset; }
141 void setPropertyGxResBackgroundCollisionHitFlag(
const void*
const pValue);
144 constexpr void getPropertyResBackgroundCollisionSetXml(
void*
const pValue) { *
static_cast<GxResBackgroundCollisionSetXml**
>(pValue) = _pResBackgroundCollisionSetXml; }
147 void setPropertyResBackgroundCollisionSetXml(
const void*
const pValue);
153 constexpr GxResBackgroundCollisionSetXml* getResBackgroundCollisionSetXml(
void)
const {
return _pResBackgroundCollisionSetXml; }
156 constexpr u32 getPresetNameCount(
void)
const {
return _presetNameCount;}
159 constexpr GxResCollisionMesh* getResCollisionMesh(
void)
const {
return _pResCollisionMesh; }
162 constexpr GxResHitFlagPreset* getResHitFlagPreset(
void)
const {
return _pResHitFlagPreset; }
165 constexpr void setAttributeCount(u32 size) { _attributeCount = size; }
177 GxResBackgroundCollisionSetXml* _pResBackgroundCollisionSetXml;
178 GX_ENUM _hitFlagPresetEnum[MATERIAL_PRESET_NAME_MAX_COUNT];
179 u32 _presetNameCount;
181 gx::core::GxGuiSplitter* _pSplitterFile;
182 GxGuiPropertyTableHitFlag* _pBgHitFlagTable;
185 GX_ENUM _pAttributeEnum[MATERIAL_PRESET_NAME_MAX_COUNT];
194class GxToolBackGroundCollisionSet::GxGuiPropertyTableHitFlag :
public gx::core::GxGuiPropertyTable
201 GX_RTTI_CLASS( GxToolBackGroundCollisionSet::GxGuiPropertyTableHitFlag, gx::core::GxGuiPropertyTable );
212 GxGuiPropertyTableHitFlag(
void ){}
215 GxGuiPropertyTableHitFlag( GxToolBackGroundCollisionSet* pTool,
const GxProperty& property,
GxTypedObject* pObject, u32 index = 0,
b32 useFilter =
false, TYPE type = TYPE::HORIZON );
224 GX_FORCE_INLINE
b32 isChange(
void ){
return updateObjectList(); }
227 GX_FORCE_INLINE
b32 isRequestRemake(
void)
const {
return _isRequestRemake; }
230 GX_FORCE_INLINE
void setRequestRemake(
b32 request ) { _isRequestRemake = request; }
236 constexpr s32 getSelectMaterialNumber(
void) {
return _pSelectObject ?
static_cast<s32
>(_pSelectObject->getMaterialNumber()) : -1; }
239 constexpr s32 getSelectPresetNumber(
void)
const {
return _pSelectObject ?
static_cast<s32
>(_pSelectObject->getPresetNumber()) : -1; }
248 constexpr void resetRequestRemake(
void) { _isRequestRemake =
false; }
251 void onClick(
const GxPoint2& position, u32 button )
override;
260 b32 _isRequestRemake;
265GX_PHYSICS_NAMESPACE_END()
#define GX_PROHIBIT_CLASS_BASE_REFERENCE(__CLASS__)
GxClassBaseReference継承の禁止宣言(new以外の生成禁止 + コピー禁止)
Definition GxBase.h:244
void GxTypedObject
その他
Definition GxDefine.h:213
#define GX_PHYSICS_NAMESPACE_BEGIN()
ネームスペースマクロ
Definition GxPhysics.h:28
static constexpr u32 VALUE_512
512
Definition GxMath.h:128
プロパティクラス
Definition GxProperty.h:48
ヒットフラグ設定データクラス
Definition GxResBackgroundCollisionSet.h:136
リソース基底クラス
Definition GxResBase.h:23
メッシュコリジョンリソースクラス
Definition GxResCollisionMesh.h:19
ヒットフラグのプリセットリソースクラス
Definition GxResHitFlagPreset.h:18
モデルリソースクラス
Definition GxResModel.h:20
背景ユニット基底クラス
Definition GxUnitBackgroundBase.h:20
GUI用
Definition GxDefine.h:194
座標
Definition GxStruct.h:867
文字列型クラス
Definition GxString.h:18
32bitブーリアン
Definition GxDefine.h:173