Fix text cutoff issues in save title and search error message
Save title can now overlap with the vote buttons again. It doesn't look great, but reorganizing the preview view is a task for a later day. Save titles this long are rare.
This commit is contained in:
parent
e9fdb254af
commit
40e2e4a62a
@ -111,9 +111,9 @@ PreviewView::PreviewView(std::unique_ptr<VideoBuffer> newSavePreview):
|
|||||||
AddComponent(missingElementsButton);
|
AddComponent(missingElementsButton);
|
||||||
|
|
||||||
if(showAvatars)
|
if(showAvatars)
|
||||||
saveNameLabel = new ui::Label(ui::Point(39, (YRES/2)+4), ui::Point(180, 16), "");
|
saveNameLabel = new ui::Label(ui::Point(39, (YRES/2)+4), ui::Point(265, 16), "");
|
||||||
else
|
else
|
||||||
saveNameLabel = new ui::Label(ui::Point(5, (YRES/2)+4), ui::Point(200, 16), "");
|
saveNameLabel = new ui::Label(ui::Point(5, (YRES/2)+4), ui::Point(300, 16), "");
|
||||||
saveNameLabel->Appearance.HorizontalAlign = ui::Appearance::AlignLeft;
|
saveNameLabel->Appearance.HorizontalAlign = ui::Appearance::AlignLeft;
|
||||||
saveNameLabel->Appearance.VerticalAlign = ui::Appearance::AlignMiddle;
|
saveNameLabel->Appearance.VerticalAlign = ui::Appearance::AlignMiddle;
|
||||||
AddComponent(saveNameLabel);
|
AddComponent(saveNameLabel);
|
||||||
|
@ -490,7 +490,7 @@ void SearchView::NotifySaveListChanged(SearchModel * sender)
|
|||||||
loadingSpinner->Visible = false;
|
loadingSpinner->Visible = false;
|
||||||
if (!errorLabel)
|
if (!errorLabel)
|
||||||
{
|
{
|
||||||
errorLabel = new ui::Label(ui::Point((WINDOWW/2)-100, (WINDOWH/2)-6), ui::Point(200, 12), "Error");
|
errorLabel = new ui::Label(ui::Point(0, (WINDOWH/2)-6), ui::Point(WINDOWW, 12), "Error");
|
||||||
AddComponent(errorLabel);
|
AddComponent(errorLabel);
|
||||||
}
|
}
|
||||||
if (!sender->GetSavesLoaded())
|
if (!sender->GetSavesLoaded())
|
||||||
|
Loading…
Reference in New Issue
Block a user