62 737
modifications
mAucun résumé des modifications |
mAucun résumé des modifications |
||
(Une version intermédiaire par le même utilisateur non affichée) | |||
Ligne 5 : | Ligne 5 : | ||
-------------------------------------------------------- | -------------------------------------------------------- | ||
function buildObjectTable(index, objectName, | function buildObjectTable(index, objectName, hasSeparator) | ||
local objectTable | local objectTable | ||
if objectName then | if objectName or index == '' then | ||
objectTable = { type = 'table', title = objectName, separator = | objectTable = { type = 'table', title = objectName, separator = hasSeparator, rows = { | ||
{ type = 'row', label = 'Taille du magasin', value = 'magasin' .. index }, | { type = 'row', label = 'Taille du magasin', value = 'magasin' .. index }, | ||
{ type = 'row', label = 'Modification de la [[Classe d\'armure|CA]]', value = 'magasin' .. index }, | { type = 'row', label = 'Modification de la [[Classe d\'armure|CA]]', value = 'magasin' .. index }, | ||
Ligne 16 : | Ligne 16 : | ||
{ type = 'row', label = 'Valeur', value = 'valeur' .. index }, | { type = 'row', label = 'Valeur', value = 'valeur' .. index }, | ||
{ type = 'row', label = 'Proto ID', value = 'proto' .. index } | { type = 'row', label = 'Proto ID', value = 'proto' .. index } | ||
}} | }} | ||
else | else | ||
objectTable = { type = 'text' } | objectTable = { type = 'text' } | ||
Ligne 30 : | Ligne 30 : | ||
local isFot = games:find('fot') ~= nil | local isFot = games:find('fot') ~= nil | ||
local objectName2 = localdata['nom | local objectName2 = localdata['nom munition2'] | ||
local objectName3 = localdata['nom | local objectName3 = localdata['nom munition3'] | ||
local objectName4 = localdata['nom | local objectName4 = localdata['nom munition4'] | ||
local objectName5 = localdata['nom | local objectName5 = localdata['nom munition5'] | ||
-- Gestion de l'affichage en fonction | -- Gestion de l'affichage en fonction |
modifications