Threshold-Yuzu/resource/layout/setcustomimagedialog.layout

51 lines
1.9 KiB
Plaintext

"resource/layout/setcustomimagedialog.layout"
{
controls
{
SetCustomImageDialog { controlname="Frame" title="#SteamUI_SetCustomImage_Title" style="SetCustomImageDialog" }
ChooseAnImage { controlname="Label" labeltext="#SteamUI_SetCustomImage_ChooseImage" wrap=1 }
ImagePrescription { controlname="Label" labeltext="#SteamUI_SetCustomImage_ImagePrescription" wrap=1 }
ThisFile { controlname="Label" labeltext="#SteamUI_SetCustomImage_ThisFile" wrap=1 }
Filename { controlname="TextEntry" tabposition=1 unicode=1 }
Browse { controlname="Button" tabposition=2 command="Browse" labeltext="#SteamUI_SetCustomImage_Browse" }
TryAgain { controlname="Label" labeltext="#SteamUI_SetCustomImage_TryAgain" visible=false }
OK { controlname="Button" tabposition=3 command="DoSetCustomImage" labeltext="#SteamUI_SetCustomImage_SetImage" }
Cancel { controlname="Button" tabposition=4 command="Cancel" labeltext="#SteamUI_SetCustomImage_Cancel" }
}
styles
{
SetCustomImageDialog
{
minimum-width = 400
minimum-height = 250
}
}
layout
{
region { name="top" width=max height=150 margin=10 margin-top=40}
region { name="middle" width=max height=150 y=100 margin=10 }
region { name="bottom" width=max align=bottom height=40 margin=10 }
// top: prompts
place { control="ChooseAnImage" region="top" width=max }
place { control="ImagePrescription" start="ChooseAnImage" margin-top=15 dir=down region="top" width=max }
// middle: controls to select the image
place { region="middle" control="ThisFile" width=max margin-right=15 margin-top=15 }
place { region="middle" control="Filename" start="ThisFile" dir=down width=max margin-right=15 margin-top=7 }
place { region="middle" control="Browse" start="Filename" dir=down margin-right=15 margin-top=7 }
place { region="middle" control="TryAgain" start="Browse" dir=right margin-left=15 }
// bottom: OK/cancel
place { control="OK,Cancel" region="bottom" align=right spacing=5 }
}
}