diff options
| author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-06-24 01:02:01 +0300 |
|---|---|---|
| committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-06-24 08:36:50 +0300 |
| commit | da1d9139b3412e391b5ed7c868d350760719ee9e (patch) | |
| tree | 00aeca98043b71a50128b3c5b2936eded2a71603 /indra/newview/llmaterialeditor.h | |
| parent | 0bc7fee11fe43281d5d3c97e95249f9c26af0eb1 (diff) | |
SL-17640 Materials Upload UI #2
New Fee fields
New Buttons
Diffstat (limited to 'indra/newview/llmaterialeditor.h')
| -rw-r--r-- | indra/newview/llmaterialeditor.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/indra/newview/llmaterialeditor.h b/indra/newview/llmaterialeditor.h index 2af4ccf885..1584f2c136 100644 --- a/indra/newview/llmaterialeditor.h +++ b/indra/newview/llmaterialeditor.h @@ -28,6 +28,8 @@ #include "llfloater.h" +class LLTextureCtrl; + class LLMaterialEditor : public LLFloater { public: @@ -40,6 +42,9 @@ public: void applyToSelection(); void onClickSave(); + void onClickSaveAs(); + void onSaveAsCommitCallback(const LLSD& notification, const LLSD& response); + void onClickCancel(); // llpanel BOOL postBuild() override; @@ -82,5 +87,24 @@ public: bool getDoubleSided(); void setDoubleSided(bool double_sided); + + void onCommitAlbedoTexture(LLUICtrl* ctrl, const LLSD& data); + void onCommitMetallicTexture(LLUICtrl* ctrl, const LLSD& data); + void onCommitEmissiveTexture(LLUICtrl* ctrl, const LLSD& data); + void onCommitNormalTexture(LLUICtrl* ctrl, const LLSD& data); + +private: + LLTextureCtrl* mAlbedoTextureCtrl; + LLTextureCtrl* mMetallicTextureCtrl; + LLTextureCtrl* mEmissiveTextureCtrl; + LLTextureCtrl* mNormalTextureCtrl; + + // 'Default' texture, unless it's null or from inventory is the one with the fee + LLUUID mAlbedoTextureUploadId; + LLUUID mMetallicTextureUploadId; + LLUUID mEmissiveTextureUploadId; + LLUUID mNormalTextureUploadId; + + std::string mMaterialName; }; |
