Hi. I am trying to build an .exe file to run on WINDOWS, but somehow the game is only shown in a very small window. I did follow the Win32 Settings DOC to add the information in build.settings BUT somwhow I can not manage the window of the game to resize with the mouse OR to start / change to fullscreen.
What am I missing here? How can I add control in a Solar2D app to achieve this?
settings =
{
win32 =
{
preferenceStorage = "registry",
singleInstance = true,
window =
{
-- Settings for the desktop window; applies to both Win32 and macOS desktop apps
defaultMode = "fullscreen",
resizable = true,
defaultViewWidth = 320,
defaultViewHeight = 480,
enableCloseButton = true,
enableMinimizeButton = true,
enableMaximizeButton = true,
suspendWhenMinimized = true,
titleText = {
-- The "default" text will be used if the system is using a language and/or
-- country code not defined below. This serves as a fallback mechanism.
default = "NAME",
-- This text is used on English language systems in the United States.
-- Note that the country code must be separated by a dash (-).
["enāus"] = "NAME",
-- This text is used on English language systems in the United Kingdom.
-- Note that the country code must be separated by a dash (-).
["enāgb"] = "NAME",
-- This text is used for all other English language systems.
["en"] = "NAME",
-- German
["de"] = "NAME",
-- This text is used for all French language systems.
--["fr"] = "Window Title Test (French)",
-- This text is used for all Spanish language systems.
--["es"] = "Window Title Test (Spanish)",
},
},
}
},
window is not meant to be inside the win32 table, so it should be:
settings =
{
win32 = {
},
window = {
},
}
with their respective values.
Now, aside of that, Iām coming across a weird issue I havenāt seen before⦠for me if I have preferenceStorage = "registry", it seems to always launch the application on fullscreen mode no matter what I set on defaultMode, but it works fine if I comment out the preferenceStorage key or set its value to sqlite which is the default.