2
0

BsScriptGUIResourceField.h 1.1 KB

123456789101112131415161718192021222324252627282930
  1. #pragma once
  2. #include "BsScriptEditorPrerequisites.h"
  3. #include "BsScriptGUIElement.h"
  4. namespace BansheeEngine
  5. {
  6. class BS_SCR_BED_EXPORT ScriptGUIResourceField : public TScriptGUIElement<ScriptGUIResourceField>
  7. {
  8. public:
  9. SCRIPT_OBJ(EDITOR_ASSEMBLY, "BansheeEditor", "GUIResourceField")
  10. private:
  11. static void internal_createInstance(MonoObject* instance, MonoReflectionType* type, MonoObject* title, UINT32 titleWidth,
  12. MonoString* style, MonoArray* guiOptions, bool withTitle);
  13. static void internal_getValue(ScriptGUIResourceField* nativeInstance, MonoObject** output);
  14. static void internal_setValue(ScriptGUIResourceField* nativeInstance, MonoObject* value);
  15. static void internal_setTint(ScriptGUIResourceField* nativeInstance, Color color);
  16. static void onChanged(MonoObject* instance, const HResource& newValue);
  17. static MonoObject* nativeToManagedResource(const HResource& instance);
  18. ScriptGUIResourceField(MonoObject* instance, GUIResourceField* resourceField);
  19. typedef void(__stdcall *OnChangedThunkDef) (MonoObject*, MonoObject*, MonoException**);
  20. static OnChangedThunkDef onChangedThunk;
  21. };
  22. }