Changes

display_class support
Line 22: Line 22:  
_edit_link_text = "Edit",
 
_edit_link_text = "Edit",
 
_localized_name_template = "<br />''${localized_name}''",
 
_localized_name_template = "<br />''${localized_name}''",
 +
_display_class_template = "Game library: ${display_class}",
 
_kekkon_max_template = "Maximum after marriage: ${value}",
 
_kekkon_max_template = "Maximum after marriage: ${value}",
 
_kekkon_template = "After marriage: ${value}; Upper bound: ${max}",
 
_kekkon_template = "After marriage: ${value}; Upper bound: ${max}",
Line 218: Line 219:  
function ShipInfoKai:class()
 
function ShipInfoKai:class()
 
local class = self._ship:class()
 
local class = self._ship:class()
self._vars.class = Formatting:format_stat(class and class:name())
+
local result = Formatting:format_stat(class and class:name())
 +
local display_class = self._ship:display_class()
 +
if display_class then
 +
result = Formatting:tooltip(result, format{self._display_class_template, display_class = display_class})
 +
end
 +
self._vars.class = result
 
end
 
end
  
advmod, cssedit, Interface administrators, janitor, Moderators, prechecked, Widget editors
7,932

edits