Checkbox decal now scales with the size of the menu component (Fixes the "Online Mode" checkbox, which was smaller than the rest). Release Build 9660.

mac-build
sigonasr2 8 months ago
parent a66edefc19
commit b9d98741ea
  1. 4
      Adventures in Lestoria/Checkbox.h
  2. 1
      Adventures in Lestoria/Pixel.cpp
  3. 2
      Adventures in Lestoria/Version.h
  4. 16
      emscripten_build.ps1
  5. BIN
      x64/Release/Adventures in Lestoria.exe
  6. 1
      x64/Release/steam_appid.txt

@ -80,7 +80,9 @@ public:
MenuComponent::DrawDecal(window,focused);
if(checked){
window.DrawDecal(rect.pos,GFX["checkmark.png"].Decal());
const vf2d scale{GetSize()/GFX["checkmark.png"].Sprite()->Size()};
LOG(std::format("{} / {} / {}",GFX["checkmark.png"].Sprite()->Size().str(),GetSize().str(),scale.str()));
window.DrawDecal(rect.pos,GFX["checkmark.png"].Decal(),scale);
}
}
};

@ -50,6 +50,7 @@ Community: https://community.onelonecoder.com
#include "Pixel.h"
#include <utility>
#include <algorithm>
namespace olc{
// O------------------------------------------------------------------------------O

@ -39,7 +39,7 @@ All rights reserved.
#define VERSION_MAJOR 1
#define VERSION_MINOR 2
#define VERSION_PATCH 3
#define VERSION_BUILD 9659
#define VERSION_BUILD 9660
#define stringify(a) stringify_(a)
#define stringify_(a) #a

@ -1,23 +1,7 @@
git update-index --assume-unchanged "Adventures in Lestoria/packkey.cpp"
clear
rm -R bin
mkdir bin
mkdir bin/assets
$ErrorActionPreference = "Stop"
cp -R 'Adventures in Lestoria/buildtemplate.html' bin/index.html
cp -R "Adventures in Lestoria/assets/Campaigns" bin/assets
cp -R "Adventures in Lestoria/assets/config" bin/assets
cp -R "Adventures in Lestoria/assets/maps" bin/assets
cp -R "Adventures in Lestoria/assets/backgrounds" bin/assets
rm -R bin/assets/backgrounds/commercial_assets
rm -R bin/assets/maps/commercial_assets
cp -R "Adventures in Lestoria/assets/monsters" bin/assets
cp -R "Adventures in Lestoria/assets/music" bin/assets
cp -R "Adventures in Lestoria/assets/npcs" bin/assets
cp -R "Adventures in Lestoria/assets/sounds" bin/assets
cp -R "Adventures in Lestoria/assets/themes" bin/assets
cp -R "Adventures in Lestoria/assets/gamepack.pak" bin/assets
cp -R "Adventures in Lestoria/assets/*.ttf" bin/assets
emcmake cmake -DCMAKE_BUILD_TYPE=Release .
cmake --build . -j 20
Loading…
Cancel
Save