1 Commits

Author SHA1 Message Date
bffd9ebb73 Release build squashed
Some checks failed
/ release (Debug, map[deps:macos-universal flag:arm64 name:macos scons-script:./.github/workflows/scripts/mac/scons-build.sh suffix:-silicon version:14]) (push) Has been cancelled
/ release (Debug, map[deps:macos-universal flag:x86_64 name:macos scons-script:./.github/workflows/scripts/mac/scons-build.sh suffix:-intel version:13]) (push) Has been cancelled
/ release (Debug, map[name:windows scons-script:./.github/workflows/scripts/win/scons-build.bat suffix: version:2019]) (push) Has been cancelled
/ release (Release, map[deps:macos-universal flag:arm64 name:macos scons-script:./.github/workflows/scripts/mac/scons-build.sh suffix:-silicon version:14]) (push) Has been cancelled
/ release (Release, map[deps:macos-universal flag:x86_64 name:macos scons-script:./.github/workflows/scripts/mac/scons-build.sh suffix:-intel version:13]) (push) Has been cancelled
/ release (Release, map[name:windows scons-script:./.github/workflows/scripts/win/scons-build.bat suffix: version:2019]) (push) Has been cancelled
2025-05-21 15:30:50 -05:00
6 changed files with 16 additions and 28 deletions

View File

@@ -12,7 +12,7 @@ elif [ "$BUILD_OS" = "windows" ]; then
butler_exe=butler.exe
release_dir="windows"
elif [ "$BUILD_OS" = "macos" ]; then
butler_channel=darwin-amd64
butler_channel=mac-universal
butler_exe=butler
release_dir="macos"
fi
@@ -25,4 +25,4 @@ unzip butler.zip
chmod +x ${butler_exe}
# just a sanity check run (and also helpful in case you're sharing CI logs)
./${butler_exe} -V
./${butler_exe} push "build/Blades of Exile/" nqn/blades-of-exile:${release_dir}
./${butler_exe} push "build/Blades of Exile/" nqn/blades-of-exile:${butler_channel}

View File

@@ -445,12 +445,6 @@ void cDialog::recalcRect(){
winRect.right *= get_ui_scale();
winRect.bottom *= get_ui_scale();
// Uncomment if you need to measure any dialogs.
/*
LOG_VALUE(fname);
LOG_VALUE(winRect.right);
LOG_VALUE(winRect.bottom);
*/
}
bool cDialog::initCalled = false;

View File

@@ -93,18 +93,16 @@ std::vector<fs::path> all_scen_dirs() {
// and Itch meta files
// (designers might want to ship a README.txt)
fs::path itch_apps_path = scenDir/".."/".."/"itch"/"apps";
if(fs::is_directory(itch_apps_path)){
for(fs::directory_iterator app_iter(itch_apps_path); app_iter != fs::directory_iterator(); app_iter++){
fs::path app = *app_iter;
for(fs::directory_iterator file_iter(app); file_iter != fs::directory_iterator(); file_iter++){
fs::path file = *file_iter;
if(file.extension() == ".boes"){
scen_dirs.push_back(*app_iter);
break;
}else if(file.extension() == ".itch"){
}else if(file.extension() != ".txt"){
break;
}
for(fs::directory_iterator app_iter(itch_apps_path); app_iter != fs::directory_iterator(); app_iter++){
fs::path app = *app_iter;
for(fs::directory_iterator file_iter(app); file_iter != fs::directory_iterator(); file_iter++){
fs::path file = *file_iter;
if(file.extension() == ".boes"){
scen_dirs.push_back(*app_iter);
break;
}else if(file.extension() == ".itch"){
}else if(file.extension() != ".txt"){
break;
}
}
}

View File

@@ -1889,7 +1889,7 @@ class cFilePicker {
save_files.resize(save_file_mtimes.size());
cStack& stk = get_stack();
int num_pages = max(1, ceil((float)save_file_mtimes.size() / parties_per_page));
int num_pages = ceil((float)save_file_mtimes.size() / parties_per_page);
stk.setPageCount(num_pages);
// HACK: For some reason which should be fixed, the buttons and labels on subsequent pages
// aren't getting text on the static buttons and labels
@@ -2098,7 +2098,7 @@ class cFilePicker {
if(party_idx < parties_needed)
populate_slot(slot_idx, save_file_mtimes[party_idx].first, save_file_mtimes[party_idx].second, save_files[party_idx]);
else
empty_slot(slot_idx);
empty_slot(party_idx - start_idx);
}
++pages_populated;

View File

@@ -1079,7 +1079,6 @@ void init_boe(int argc, char* argv[]) {
init_tiling();
init_snd_tool();
// see fallback_scale() in winutil.cpp for where the default UI scale is calculated based on screen size
adjust_window_mode();
init_ui();
// If we don't do this now it'll flash white to start with

View File

@@ -3,11 +3,8 @@
#include <boost/filesystem/operations.hpp>
#include "keymods.hpp"
// Measured on 5/23/25. For now, must be re-measured at 1x UI scale whenever preferences change (unless making the window smaller, maybe).
short prefs_height = 529;
// The default scale should be the largest that the user's screen can fit all three
// BoE application windows and core dialogs of the main game (because they should probably default to match each other).
// BoE application windows (because they should probably default to match each other).
double fallback_scale() {
static double scale = 0;
// Suppress the float comparison warning.
@@ -20,7 +17,7 @@ double fallback_scale() {
sf::VideoMode desktop = sf::VideoMode::getDesktopMode();
short max_width = max(boe_width, max(pc_width, scen_width));
short max_height = max(prefs_height, max(boe_height, max(pc_height, scen_height))) + getMenubarHeight();
short max_height = max(boe_height, max(pc_height, scen_height)) + getMenubarHeight();
std::vector<double> scale_options = {1.0, 1.5, 2.0, 3.0, 4.0};
for(auto it = scale_options.rbegin(); it != scale_options.rend(); ++it){