Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tales of MajEyal
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tome
Tales of MajEyal
Commits
402abe91
Commit
402abe91
authored
9 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
New option to disable the big quest popup
parent
69e29a02
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
game/modules/tome/class/Player.lua
+10
-10
10 additions, 10 deletions
game/modules/tome/class/Player.lua
game/modules/tome/dialogs/GameOptions.lua
+9
-0
9 additions, 0 deletions
game/modules/tome/dialogs/GameOptions.lua
game/modules/tome/settings.lua
+1
-0
1 addition, 0 deletions
game/modules/tome/settings.lua
with
20 additions
and
10 deletions
game/modules/tome/class/Player.lua
+
10
−
10
View file @
402abe91
...
...
@@ -1566,27 +1566,27 @@ end
function
_M
:
on_quest_grant
(
quest
)
game
.
logPlayer
(
game
.
player
,
"#LIGHT_GREEN#Accepted quest '%s'! #WHITE#(Press 'j' to see the quest log)"
,
quest
.
name
)
--
game.bignews:saySimple(60, "#LIGHT_GREEN#Accepted quest '%s'!", quest.name)
self
:
questPopup
(
quest
,
-
1
)
if
not
config
.
settings
.
tome
.
quest_popup
then
game
.
bignews
:
saySimple
(
60
,
"#LIGHT_GREEN#Accepted quest '%s'!"
,
quest
.
name
)
else
self
:
questPopup
(
quest
,
-
1
)
end
end
function
_M
:
on_quest_status
(
quest
,
status
,
sub
)
if
sub
then
game
.
logPlayer
(
game
.
player
,
"#LIGHT_GREEN#Quest '%s' status updated! #WHITE#(Press 'j' to see the quest log)"
,
quest
.
name
)
--
game.bignews:saySimple(60, "#LIGHT_GREEN#Quest '%s' updated!", quest.name)
self
:
questPopup
(
quest
,
engine
.
Quest
.
PENDING
)
if
not
config
.
settings
.
tome
.
quest_popup
then
game
.
bignews
:
saySimple
(
60
,
"#LIGHT_GREEN#Quest '%s' updated!"
,
quest
.
name
)
else
self
:
questPopup
(
quest
,
engine
.
Quest
.
PENDING
)
end
elseif
status
==
engine
.
Quest
.
COMPLETED
then
game
.
logPlayer
(
game
.
player
,
"#LIGHT_GREEN#Quest '%s' completed! #WHITE#(Press 'j' to see the quest log)"
,
quest
.
name
)
--
game.bignews:saySimple(60, "#LIGHT_GREEN#Quest '%s' completed!", quest.name)
self
:
questPopup
(
quest
,
status
)
if
not
config
.
settings
.
tome
.
quest_popup
then
game
.
bignews
:
saySimple
(
60
,
"#LIGHT_GREEN#Quest '%s' completed!"
,
quest
.
name
)
else
self
:
questPopup
(
quest
,
status
)
end
elseif
status
==
engine
.
Quest
.
DONE
then
game
.
logPlayer
(
game
.
player
,
"#LIGHT_GREEN#Quest '%s' is done! #WHITE#(Press 'j' to see the quest log)"
,
quest
.
name
)
--
game.bignews:saySimple(60, "#LIGHT_GREEN#Quest '%s' done!", quest.name)
self
:
questPopup
(
quest
,
status
)
if
not
config
.
settings
.
tome
.
quest_popup
then
game
.
bignews
:
saySimple
(
60
,
"#LIGHT_GREEN#Quest '%s' done!"
,
quest
.
name
)
else
self
:
questPopup
(
quest
,
status
)
end
elseif
status
==
engine
.
Quest
.
FAILED
then
game
.
logPlayer
(
game
.
player
,
"#LIGHT_RED#Quest '%s' is failed! #WHITE#(Press 'j' to see the quest log)"
,
quest
.
name
)
--
game.bignews:saySimple(60, "#LIGHT_RED#Quest '%s' failed!", quest.name)
self
:
questPopup
(
quest
,
status
)
if
not
config
.
settings
.
tome
.
quest_popup
then
game
.
bignews
:
saySimple
(
60
,
"#LIGHT_RED#Quest '%s' failed!"
,
quest
.
name
)
else
self
:
questPopup
(
quest
,
status
)
end
end
end
...
...
This diff is collapsed.
Click to expand it.
game/modules/tome/dialogs/GameOptions.lua
+
9
−
0
View file @
402abe91
...
...
@@ -423,6 +423,15 @@ function _M:generateListUi()
self
.
c_list
:
drawItem
(
item
)
end
,}
local
zone
=
Textzone
.
new
{
width
=
self
.
c_desc
.
w
,
height
=
self
.
c_desc
.
h
,
text
=
string
.
toTString
"If enabled new quests and quests updates will display a big popup, if not a simple line of text will fly on the screen.#WHITE#"
}
list
[
#
list
+
1
]
=
{
zone
=
zone
,
name
=
string
.
toTString
"#GOLD##{bold}#Big Quest Popups#WHITE##{normal}#"
,
status
=
function
(
item
)
return
tostring
(
config
.
settings
.
tome
.
quest_popup
and
"enabled"
or
"disabled"
)
end
,
fct
=
function
(
item
)
config
.
settings
.
tome
.
quest_popup
=
not
config
.
settings
.
tome
.
quest_popup
game
:
saveSettings
(
"tome.quest_popup"
,
(
"tome.quest_popup = %s\n"
):
format
(
tostring
(
config
.
settings
.
tome
.
quest_popup
)))
self
.
c_list
:
drawItem
(
item
)
end
,}
self
.
list
=
list
end
...
...
This diff is collapsed.
Click to expand it.
game/modules/tome/settings.lua
+
1
−
0
View file @
402abe91
...
...
@@ -57,6 +57,7 @@ if type(config.settings.tome.fullscreen_stun) == "nil" then config.settings.tome
if
type
(
config
.
settings
.
tome
.
fullscreen_confusion
)
==
"nil"
then
config
.
settings
.
tome
.
fullscreen_confusion
=
true
end
if
type
(
config
.
settings
.
tome
.
show_grid_lines
)
==
"nil"
then
config
.
settings
.
tome
.
show_grid_lines
=
false
end
if
type
(
config
.
settings
.
tome
.
tinker_auto_switch
)
==
"nil"
then
config
.
settings
.
tome
.
tinker_auto_switch
=
true
end
if
type
(
config
.
settings
.
tome
.
quest_popup
)
==
"nil"
then
config
.
settings
.
tome
.
quest_popup
=
true
end
if
not
config
.
settings
.
tome
.
fonts
then
config
.
settings
.
tome
.
fonts
=
{
type
=
"fantasy"
,
size
=
"normal"
}
end
if
not
config
.
settings
.
tome
.
ui_theme3
then
config
.
settings
.
tome
.
ui_theme3
=
"dark"
end
if
not
config
.
settings
.
tome
.
uiset_mode
then
config
.
settings
.
tome
.
uiset_mode
=
"Minimalist"
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment