Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
XDG Integration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
JennaHuntsman
XDG Integration
Commits
a9fe1b8e
Commit
a9fe1b8e
authored
1 year ago
by
Rye Mutt
Browse files
Options
Downloads
Patches
Plain Diff
Fix crash
parent
063cfa10
No related branches found
Branches containing commit
No related tags found
2 merge requests
!3
Update to main branch
,
!2
Rebase onto current main branch
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/llpaneloutfitedit.cpp
+17
-16
17 additions, 16 deletions
indra/newview/llpaneloutfitedit.cpp
indra/newview/llpaneloutfitedit.h
+2
-0
2 additions, 0 deletions
indra/newview/llpaneloutfitedit.h
with
19 additions
and
16 deletions
indra/newview/llpaneloutfitedit.cpp
+
17
−
16
View file @
a9fe1b8e
...
@@ -415,16 +415,6 @@ LLPanelOutfitEdit::LLPanelOutfitEdit()
...
@@ -415,16 +415,6 @@ LLPanelOutfitEdit::LLPanelOutfitEdit()
mSavedFolderState
=
new
LLSaveFolderState
();
mSavedFolderState
=
new
LLSaveFolderState
();
mSavedFolderState
->
setApply
(
FALSE
);
mSavedFolderState
->
setApply
(
FALSE
);
LLOutfitObserver
&
observer
=
LLOutfitObserver
::
instance
();
observer
.
addBOFReplacedCallback
(
boost
::
bind
(
&
LLPanelOutfitEdit
::
updateCurrentOutfitName
,
this
));
observer
.
addBOFChangedCallback
(
boost
::
bind
(
&
LLPanelOutfitEdit
::
updateVerbs
,
this
));
observer
.
addOutfitLockChangedCallback
(
boost
::
bind
(
&
LLPanelOutfitEdit
::
updateVerbs
,
this
));
observer
.
addCOFChangedCallback
(
boost
::
bind
(
&
LLPanelOutfitEdit
::
onCOFChanged
,
this
));
gAgentWearables
.
addLoadingStartedCallback
(
boost
::
bind
(
&
LLPanelOutfitEdit
::
onOutfitChanging
,
this
,
true
));
gAgentWearables
.
addLoadedCallback
(
boost
::
bind
(
&
LLPanelOutfitEdit
::
onOutfitChanging
,
this
,
false
));
mFolderViewItemTypes
.
reserve
(
NUM_FOLDER_VIEW_ITEM_TYPES
);
mFolderViewItemTypes
.
reserve
(
NUM_FOLDER_VIEW_ITEM_TYPES
);
for
(
U32
i
=
0
;
i
<
NUM_FOLDER_VIEW_ITEM_TYPES
;
i
++
)
for
(
U32
i
=
0
;
i
<
NUM_FOLDER_VIEW_ITEM_TYPES
;
i
++
)
{
{
...
@@ -578,8 +568,21 @@ BOOL LLPanelOutfitEdit::postBuild()
...
@@ -578,8 +568,21 @@ BOOL LLPanelOutfitEdit::postBuild()
mAvatarComplexityLabel
=
getChild
<
LLTextBox
>
(
"avatar_complexity_label"
);
mAvatarComplexityLabel
=
getChild
<
LLTextBox
>
(
"avatar_complexity_label"
);
mAvatarComplexityAddingLabel
=
getChild
<
LLTextBox
>
(
"avatar_complexity_adding_label"
);
mAvatarComplexityAddingLabel
=
getChild
<
LLTextBox
>
(
"avatar_complexity_adding_label"
);
mLoadingIndicator
=
getChild
<
LLLoadingIndicator
>
(
"edit_outfit_loading_indicator"
);
mOutfitNameStatusPanel
=
getChild
<
LLPanel
>
(
"outfit_name_and_status"
);
onOutfitChanging
(
gAgentWearables
.
isCOFChangeInProgress
());
onOutfitChanging
(
gAgentWearables
.
isCOFChangeInProgress
());
return
TRUE
;
LLOutfitObserver
&
observer
=
LLOutfitObserver
::
instance
();
observer
.
addBOFReplacedCallback
(
boost
::
bind
(
&
LLPanelOutfitEdit
::
updateCurrentOutfitName
,
this
));
observer
.
addBOFChangedCallback
(
boost
::
bind
(
&
LLPanelOutfitEdit
::
updateVerbs
,
this
));
observer
.
addOutfitLockChangedCallback
(
boost
::
bind
(
&
LLPanelOutfitEdit
::
updateVerbs
,
this
));
observer
.
addCOFChangedCallback
(
boost
::
bind
(
&
LLPanelOutfitEdit
::
onCOFChanged
,
this
));
gAgentWearables
.
addLoadingStartedCallback
(
boost
::
bind
(
&
LLPanelOutfitEdit
::
onOutfitChanging
,
this
,
true
));
gAgentWearables
.
addLoadedCallback
(
boost
::
bind
(
&
LLPanelOutfitEdit
::
onOutfitChanging
,
this
,
false
));
return
LLPanel
::
postBuild
();
}
}
// virtual
// virtual
...
@@ -1325,19 +1328,17 @@ static void update_status_widget_rect(LLView * widget, S32 right_border)
...
@@ -1325,19 +1328,17 @@ static void update_status_widget_rect(LLView * widget, S32 right_border)
void
LLPanelOutfitEdit
::
onOutfitChanging
(
bool
started
)
void
LLPanelOutfitEdit
::
onOutfitChanging
(
bool
started
)
{
{
static
LLLoadingIndicator
*
indicator
=
getChild
<
LLLoadingIndicator
>
(
"edit_outfit_loading_indicator"
);
S32
indicator_delta
=
mOutfitNameStatusPanel
->
getRect
().
getWidth
()
-
mLoadingIndicator
->
getRect
().
mLeft
;
static
LLView
*
status_panel
=
getChild
<
LLView
>
(
"outfit_name_and_status"
);
static
S32
indicator_delta
=
status_panel
->
getRect
().
getWidth
()
-
indicator
->
getRect
().
mLeft
;
S32
delta
=
started
?
indicator_delta
:
0
;
S32
delta
=
started
?
indicator_delta
:
0
;
S32
right_border
=
s
tatus
_p
anel
->
getRect
().
getWidth
()
-
delta
;
S32
right_border
=
mOutfitNameS
tatus
P
anel
->
getRect
().
getWidth
()
-
delta
;
if
(
mCurrentOutfitName
)
if
(
mCurrentOutfitName
)
update_status_widget_rect
(
mCurrentOutfitName
,
right_border
);
update_status_widget_rect
(
mCurrentOutfitName
,
right_border
);
if
(
mStatus
)
if
(
mStatus
)
update_status_widget_rect
(
mStatus
,
right_border
);
update_status_widget_rect
(
mStatus
,
right_border
);
i
ndicator
->
setVisible
(
started
);
mLoadingI
ndicator
->
setVisible
(
started
);
}
}
void
LLPanelOutfitEdit
::
getCurrentItemUUID
(
LLUUID
&
selected_id
)
void
LLPanelOutfitEdit
::
getCurrentItemUUID
(
LLUUID
&
selected_id
)
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llpaneloutfitedit.h
+
2
−
0
View file @
a9fe1b8e
...
@@ -243,6 +243,8 @@ class LLPanelOutfitEdit : public LLPanel
...
@@ -243,6 +243,8 @@ class LLPanelOutfitEdit : public LLPanel
bool
mInitialized
;
bool
mInitialized
;
LLMenuButton
*
mWearablesGearMenuBtn
;
LLMenuButton
*
mWearablesGearMenuBtn
;
LLMenuButton
*
mGearMenuBtn
;
LLMenuButton
*
mGearMenuBtn
;
LLLoadingIndicator
*
mLoadingIndicator
=
nullptr
;
LLPanel
*
mOutfitNameStatusPanel
=
nullptr
;
};
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment