mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-21 13:23:52 +00:00
Merge branch 'doc-formattopics' into 'master'
Follow up to MR 126 - make it more obvious for end users how to set colors See merge request OpenMW/openmw!234
This commit is contained in:
commit
abc77075b9
5 changed files with 33 additions and 4 deletions
|
@ -104,6 +104,7 @@ bool Launcher::AdvancedPage::loadSettings()
|
||||||
loadSettingBool(showEnchantChanceCheckBox, "show enchant chance", "Game");
|
loadSettingBool(showEnchantChanceCheckBox, "show enchant chance", "Game");
|
||||||
loadSettingBool(showMeleeInfoCheckBox, "show melee info", "Game");
|
loadSettingBool(showMeleeInfoCheckBox, "show melee info", "Game");
|
||||||
loadSettingBool(showProjectileDamageCheckBox, "show projectile damage", "Game");
|
loadSettingBool(showProjectileDamageCheckBox, "show projectile damage", "Game");
|
||||||
|
loadSettingBool(changeDialogTopicsCheckBox, "color topic enable", "GUI");
|
||||||
int showOwnedIndex = mEngineSettings.getInt("show owned", "Game");
|
int showOwnedIndex = mEngineSettings.getInt("show owned", "Game");
|
||||||
// Match the index with the option (only 0, 1, 2, or 3 are valid). Will default to 0 if invalid.
|
// Match the index with the option (only 0, 1, 2, or 3 are valid). Will default to 0 if invalid.
|
||||||
if (showOwnedIndex >= 0 && showOwnedIndex <= 3)
|
if (showOwnedIndex >= 0 && showOwnedIndex <= 3)
|
||||||
|
@ -171,6 +172,7 @@ void Launcher::AdvancedPage::saveSettings()
|
||||||
saveSettingBool(showEnchantChanceCheckBox, "show enchant chance", "Game");
|
saveSettingBool(showEnchantChanceCheckBox, "show enchant chance", "Game");
|
||||||
saveSettingBool(showMeleeInfoCheckBox, "show melee info", "Game");
|
saveSettingBool(showMeleeInfoCheckBox, "show melee info", "Game");
|
||||||
saveSettingBool(showProjectileDamageCheckBox, "show projectile damage", "Game");
|
saveSettingBool(showProjectileDamageCheckBox, "show projectile damage", "Game");
|
||||||
|
saveSettingBool(changeDialogTopicsCheckBox, "color topic enable", "GUI");
|
||||||
int showOwnedCurrentIndex = showOwnedComboBox->currentIndex();
|
int showOwnedCurrentIndex = showOwnedComboBox->currentIndex();
|
||||||
if (showOwnedCurrentIndex != mEngineSettings.getInt("show owned", "Game"))
|
if (showOwnedCurrentIndex != mEngineSettings.getInt("show owned", "Game"))
|
||||||
mEngineSettings.setInt("show owned", "Game", showOwnedCurrentIndex);
|
mEngineSettings.setInt("show owned", "Game", showOwnedCurrentIndex);
|
||||||
|
|
|
@ -737,6 +737,9 @@ namespace MWGui
|
||||||
|
|
||||||
void DialogueWindow::updateTopicFormat()
|
void DialogueWindow::updateTopicFormat()
|
||||||
{
|
{
|
||||||
|
if (!Settings::Manager::getBool("color topic enable", "GUI"))
|
||||||
|
return;
|
||||||
|
|
||||||
std::string specialColour = Settings::Manager::getString("color topic specific", "GUI");
|
std::string specialColour = Settings::Manager::getString("color topic specific", "GUI");
|
||||||
std::string oldColour = Settings::Manager::getString("color topic exhausted", "GUI");
|
std::string oldColour = Settings::Manager::getString("color topic exhausted", "GUI");
|
||||||
|
|
||||||
|
|
|
@ -141,6 +141,15 @@ This setting can only be configured by editing the settings configuration file.
|
||||||
This setting has no effect if the crosshair setting in the HUD Settings Section is false.
|
This setting has no effect if the crosshair setting in the HUD Settings Section is false.
|
||||||
This setting has no effect if the show owned setting in the Game Settings Section is false.
|
This setting has no effect if the show owned setting in the Game Settings Section is false.
|
||||||
|
|
||||||
|
color topic enable
|
||||||
|
------------------
|
||||||
|
|
||||||
|
:Type: boolean
|
||||||
|
:Range: True/False
|
||||||
|
:Default: False
|
||||||
|
|
||||||
|
Control wether additionnal formatting will be applied to dialogs topic. See 'color topic specific' and 'color topic exhausted' for details.
|
||||||
|
|
||||||
color topic specific
|
color topic specific
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
|
|
|
@ -208,13 +208,18 @@ color crosshair owned = 1.0 0.15 0.15 1.0
|
||||||
# Controls whether Arrow keys, Movement keys, Tab/Shift-Tab and Spacebar/Enter/Activate may be used to navigate GUI buttons.
|
# Controls whether Arrow keys, Movement keys, Tab/Shift-Tab and Spacebar/Enter/Activate may be used to navigate GUI buttons.
|
||||||
keyboard navigation = true
|
keyboard navigation = true
|
||||||
|
|
||||||
|
# Apply the defined color to dialogue topic.
|
||||||
|
color topic enable = false
|
||||||
|
|
||||||
# The color of dialogue topic keywords that gives unique actor responses
|
# The color of dialogue topic keywords that gives unique actor responses
|
||||||
# Format R G B A or empty for default
|
# Format R G B A or empty for no special formatting
|
||||||
color topic specific =
|
# Default to blue
|
||||||
|
color topic specific = 0.45 0.5 0.8 1
|
||||||
|
|
||||||
# The color of dialogue topic keywords that gives already read responses
|
# The color of dialogue topic keywords that gives already read responses
|
||||||
# Format R G B A or empty for default
|
# Format R G B A or empty for no special formatting
|
||||||
color topic exhausted =
|
# Default to grey
|
||||||
|
color topic exhausted = 0.3 0.3 0.3 1
|
||||||
|
|
||||||
[HUD]
|
[HUD]
|
||||||
|
|
||||||
|
|
|
@ -459,6 +459,16 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QCheckBox" name="changeDialogTopicsCheckBox">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><html><head/><body><p>If this setting is true, dialogue topics will have a different color if the topic is specific to the NPC you're talking to or the topic was previously seen. Color can be change in settings.cfg.</p><p>The default value is false.</p></body></html></string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Change dialogue topic color</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item alignment="Qt::AlignLeft">
|
<item alignment="Qt::AlignLeft">
|
||||||
<widget class="QWidget" name="showOwnedGroup" native="true">
|
<widget class="QWidget" name="showOwnedGroup" native="true">
|
||||||
<property name="toolTip">
|
<property name="toolTip">
|
||||||
|
|
Loading…
Reference in a new issue