Welcome to the Kancolle Wiki!
If you have any questions regarding site content, account registration, etc., please visit the
KanColle Wiki Discord
Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Module:ShipBattleCardKai
(view source)
Revision as of 16:25, 18 August 2018
91 bytes added
,
6 years ago
no edit summary
Line 6:
Line 6:
local ShipBattleCardKai = ShipAsset{
local ShipBattleCardKai = ShipAsset{
_battle_card_size = "160x40px",
_battle_card_size = "160x40px",
+
_battle_card_size_hd = "240x60px",
_battle_card_layers = {
_battle_card_layers = {
takoyaki = {image = "Hell plane 2.png", style = {top = "5px", left = "50px"}, size = "30x30px"},
takoyaki = {image = "Hell plane 2.png", style = {top = "5px", left = "50px"}, size = "30x30px"},
Line 68:
Line 69:
function ShipBattleCardKai:get_source(ship, args)
function ShipBattleCardKai:get_source(ship, args)
−
return args.damaged and ship:battle_card_damaged() or ship:battle_card()
+
return args.damaged and ship:battle_card_damaged(
args.hd
) or ship:battle_card(
args.hd
)
end
end
Line 79:
Line 80:
args[1] = self:get_source(ship, args)
args[1] = self:get_source(ship, args)
if not args.size then
if not args.size then
−
args.size = self._battle_card_size
+
args.size =
args.hd and self._battle_card_size_hd or
self._battle_card_size
end
end
if not args.caption then
if not args.caption then
がか
cssedit, gkautomate
7,064
edits
Navigation menu
Personal tools
Log in
Request account
Namespaces
Module
Discussion
Variants
Views
Read
View source
View history
More
Search
Content Navigation
Kancolle Wiki
Random page
Recent changes
Batch Uploading
Current Mini-event
Pumpkin Festival
Sortie
Sortie
World 1 (Naval Base Waters)
World 2 (Nansei Island Waters)
World 3 (Northern Waters)
World 7 (South Western Waters)
World 4 (Western Waters)
World 5 (Southern Waters)
World 6 (Central Waters)
Events
Shortcuts
Expeditions
Quests
Ships Maximum Status
Equipment
Construction
Development
Akashi's Improvement Arsenal
Shop
Inventory
Combat Mechanics
Glossary
Drop List
Interviews
Tutorials
How to Register
How To Play
Leveling
Resource Farming
Ship Priority
Equipment Setup
Akashi Upgrades
Event Preparation
Troubleshooting
FAQ
Community
Help
Sandbox
Tools
Upload file
Special pages
Printable version