mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-17 19:34:39 +01:00
Split gear.png into two new svg icons, a small (for indicators) and a large one (for buttons)
This commit is contained in:
1 parent
9bed94d8f9
commit
9d0dfea04f
4 files changed
+1376
-1366
No files matched your search
+3
-3
@@ -376,12 +376,12 @@ void GameButton::Draw(UIContext &dc) {
|
||||
}
|
||||
|
||||
if (ginfo->hasConfig && !ginfo->id.empty()) {
|
||||
const AtlasImage *gearImage = dc.Draw()->GetAtlas()->getImage(ImageID("I_GEAR"));
|
||||
const AtlasImage *gearImage = dc.Draw()->GetAtlas()->getImage(ImageID("I_GEAR_SMALL"));
|
||||
if (gearImage) {
|
||||
if (gridStyle_) {
|
||||
dc.Draw()->DrawImage(ImageID("I_GEAR"), bounds_.x, y + h - gearImage->h*g_Config.fGameGridScale, g_Config.fGameGridScale);
|
||||
dc.Draw()->DrawImage(ImageID("I_GEAR_SMALL"), bounds_.x, y + h - gearImage->h*g_Config.fGameGridScale, g_Config.fGameGridScale);
|
||||
} else {
|
||||
dc.Draw()->DrawImage(ImageID("I_GEAR"), bounds_.x - 1, y, 1.0f);
|
||||
dc.Draw()->DrawImage(ImageID("I_GEAR_SMALL"), bounds_.x + 4, y, 1.0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,6 +78,7 @@ static const ImageMeta imageIDs[] = {
|
||||
{"I_FOLDER", false},
|
||||
{"I_UP_DIRECTORY", false},
|
||||
{"I_GEAR", false},
|
||||
{"I_GEAR_SMALL", true},
|
||||
{"I_1", true},
|
||||
{"I_2", true},
|
||||
{"I_3", true},
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.6 KiB |
+1372
-1363
File diff suppressed because it is too large.
Load diff
|
Before Width: | Height: | Size: 203 KiB After Width: | Height: | Size: 201 KiB |
Reference in new issue
Block a user