mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-01 18:42:40 +00:00
default author name
This commit is contained in:
parent
219665ed60
commit
b16a562aeb
3 changed files with 7 additions and 1 deletions
|
@ -545,6 +545,7 @@ void DivEngine::initSongWithDesc(const char* description, bool inBase64, bool ol
|
|||
|
||||
// extra attributes
|
||||
song.subsong[0]->hz=c.getDouble("tickRate",60.0);
|
||||
song.author=getConfString("defaultAuthorName","");
|
||||
}
|
||||
|
||||
void DivEngine::createNew(const char* description, String sysName, bool inBase64) {
|
||||
|
|
|
@ -1618,6 +1618,7 @@ class FurnaceGUI {
|
|||
String emptyLabel;
|
||||
String emptyLabel2;
|
||||
String sdlAudioDriver;
|
||||
String defaultAuthorName;
|
||||
DivConfig initialSys;
|
||||
|
||||
Settings():
|
||||
|
@ -1800,7 +1801,8 @@ class FurnaceGUI {
|
|||
macroRelLabel("REL"),
|
||||
emptyLabel("..."),
|
||||
emptyLabel2(".."),
|
||||
sdlAudioDriver("") {}
|
||||
sdlAudioDriver(""),
|
||||
defaultAuthorName("") {}
|
||||
} settings;
|
||||
|
||||
struct Tutorial {
|
||||
|
|
|
@ -438,6 +438,7 @@ void FurnaceGUI::drawSettings() {
|
|||
ImGui::SetTooltip("it is a bad idea to set this number higher than your CPU core count (%d)!",cpuCores);
|
||||
}
|
||||
}
|
||||
if (ImGui::InputText("Default author name", &settings.defaultAuthorName)) settingsChanged=true;
|
||||
popWarningColor();
|
||||
|
||||
// SUBSECTION FILE
|
||||
|
@ -3648,6 +3649,7 @@ void FurnaceGUI::syncSettings() {
|
|||
settings.showPool=e->getConfInt("showPool",0);
|
||||
settings.writeInsNames=e->getConfInt("writeInsNames",1);
|
||||
settings.readInsNames=e->getConfInt("readInsNames",1);
|
||||
settings.defaultAuthorName=e->getConfString("defaultAuthorName","");
|
||||
|
||||
clampSetting(settings.mainFontSize,2,96);
|
||||
clampSetting(settings.headFontSize,2,96);
|
||||
|
@ -4066,6 +4068,7 @@ void FurnaceGUI::commitSettings() {
|
|||
e->setConf("showPool",settings.showPool);
|
||||
e->setConf("writeInsNames",settings.writeInsNames);
|
||||
e->setConf("readInsNames",settings.readInsNames);
|
||||
e->setConf("defaultAuthorName",settings.defaultAuthorName);
|
||||
|
||||
// colors
|
||||
for (int i=0; i<GUI_COLOR_MAX; i++) {
|
||||
|
|
Loading…
Reference in a new issue