Module: GamesAndRpgParadise::Fallout
- Defined in:
- lib/games_and_rpg_paradise/games/fallout/web_related_code.rb
Overview
GamesAndRpgParadise::Fallout
Constant Summary
collapse
- FAVICON_TO_USE =
'games/fallout/FALLOUT_FAVICON.png'
- FONT_SIZE =
'1.00em'
- BODY_CSS_CLASS =
'wid99 pad2px s4px BG_Black White'
- MAIN_CSS_STYLE =
'
li { black; }
a:link { color:darkblue; }
a:visited { color:darkblue; }
a:hover { color:slateblue;text-decoration: underline overline; }
body {
font-weight: 400;
margin:0px;
padding: 0px;
background-color:black;
color:white;
font-size: '+FONT_SIZE+';
font-family: Arial,Garamond,Tahoma,sans-serif;
}
pre {
font-weight: 400;
font-size:'+FONT_SIZE+';
font-family: Arial,Garamond,Tahoma,sans-serif;
}
p {
width: 96%;
}
'
Instance Method Summary
collapse
Instance Method Details
#cliner ⇒ Object
89
90
91
|
# File 'lib/games_and_rpg_paradise/games/fallout/web_related_code.rb', line 89
def cliner
e '------------'
end
|
#
All in-page headers will use this common format header.
#
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
# File 'lib/games_and_rpg_paradise/games/fallout/web_related_code.rb', line 66
def (
i, optional_image = ''
)
_ = ''.dup unless optional_image.empty?
_ << sg(
optional_image,
'bblack1 marl1em',
'drag_'+
File.basename(i).downcase.
delete_suffix(File.extname(i)).tr(' ','_')
)
end
h1 sg(:vogel,'marr1em','drag_vogel')+
i+_,
'mart1px yel BOLD pad0_3em marb3px mar2px gold',
i.gsub(/ /,''),
'padding-bottom: 2px'
end
|
103
104
105
106
107
108
109
110
|
# File 'lib/games_and_rpg_paradise/games/fallout/web_related_code.rb', line 103
def (
i, try_to_append_a_colon = false
)
if try_to_append_a_colon
i << ':' unless i.end_with? ':' end
h3 i, 'gold'
end
|
96
97
98
|
# File 'lib/games_and_rpg_paradise/games/fallout/web_related_code.rb', line 96
def (title)
h4 title,'lightblue'
end
|
#stat_gain(change_of_the_skill, name_of_the_skill) ⇒ Object
141
142
143
144
145
146
147
|
# File 'lib/games_and_rpg_paradise/games/fallout/web_related_code.rb', line 141
def stat_gain(
change_of_the_skill, name_of_the_skill
)
e sg(:axe,'mar2px marr5px')+
'Der '+name_of_the_skill+' skill verändert sich um <b>'+
change_of_the_skill+'</b>.'
end
|
#weapon_image(location, return_or_output = :output) ⇒ Object
115
116
117
118
119
120
121
122
123
124
125
|
# File 'lib/games_and_rpg_paradise/games/fallout/web_related_code.rb', line 115
def weapon_image(
location, return_or_output = :output
)
string = "<img src=\"../../images/games/FALLOUT/#{location}\" style=\"margin:5px\">"
case return_or_output
when :output
ee string
else
return string
end
end
|
#xp(i, optional_css = '') ⇒ Object
Also known as:
yellow_xp
#
xp
Use this if you wish to designate how much XP a given task yields.
#
132
133
134
135
136
|
# File 'lib/games_and_rpg_paradise/games/fallout/web_related_code.rb', line 132
def xp(
i, optional_css = ''
)
'<span class="yel BOLD '+optional_css.to_s+'">+'+i.to_s+'XP</span>'
end
|