Skip to content

Commit

Permalink
Ficha RPGmeister v4.0.2
Browse files Browse the repository at this point in the history
* Bug fixes
  • Loading branch information
ViniciusDinizLima committed Apr 29, 2024
1 parent 96739e6 commit a53bb5b
Show file tree
Hide file tree
Showing 9 changed files with 57 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,45 +380,45 @@
</script>
<template name="checkEdit">
<layout g="row" g-min-height="25">
<checkBox left="0" width="150" height="25" text="$(text)" field="$(field)" hint="$(hint)"/>
<edit left="150" width="40" height="25" field="$(field)$(prompt1)"/>
<checkBox g="col" g-width="6" height="25" text="$(text)" field="$(field)" hint="$(hint)"/>
<edit g="col" g-width="2" height="25" field="$(field)$(prompt1)"/>
<dataLink field="$(field)$(prompt1)" defaultValue="$(prompt1)" />
<!-- if (tonumber(num) or 0) > 1 then -->
<edit left="190" width="40" height="25" field="$(field)$(prompt2)"/>
<edit g="col" g-width="2" height="25" field="$(field)$(prompt2)"/>
<dataLink field="$(field)$(prompt2)" defaultValue="$(prompt2)" />
<!-- end -->
<!-- if (tonumber(num) or 0) > 2 then -->
<edit left="230" width="40" height="25" field="$(field)$(prompt3)"/>
<edit g="col" g-width="2" height="25" field="$(field)$(prompt3)"/>
<dataLink field="$(field)$(prompt3)" defaultValue="$(prompt3)" />
<!-- end -->
</layout>
</template>
<template name="checkEditCustom">
<layout g="row" g-min-height="25">
<checkBox left="0" width="15" height="25" field="$(field)" hint="$(hint)"/>
<edit left="20" width="125" height="25" field="$(field)Name)"/>
<edit left="150" width="40" height="25" field="$(field)$(prompt1)"/>
<checkBox g="col" g-width="1" height="25" field="$(field)" hint="$(hint)"/>
<edit g="col" g-width="5" height="25" field="$(field)Name)"/>
<edit g="col" g-width="2" height="25" field="$(field)$(prompt1)"/>
<dataLink field="$(field)$(prompt1)" defaultValue="$(prompt1)" />
<!-- if (tonumber(num) or 0) > 1 then -->
<edit left="190" width="40" height="25" field="$(field)$(prompt2)"/>
<edit g="col" g-width="2" height="25" field="$(field)$(prompt2)"/>
<dataLink field="$(field)$(prompt2)" defaultValue="$(prompt2)" />
<!-- end -->
<!-- if (tonumber(num) or 0) > 2 then -->
<edit left="230" width="40" height="25" field="$(field)$(prompt3)"/>
<edit g="col" g-width="2" height="25" field="$(field)$(prompt3)"/>
<dataLink field="$(field)$(prompt3)" defaultValue="$(prompt3)" />
<!-- end -->
</layout>
</template>
<template name="labelEdit">
<layout g="row" g-min-height="25">
<label left="20" width="80" height="25" text="$(text)" hint="$(hint)"/>
<edit left="100" width="40" height="25" field="$(field)"/>
<label g="col" g-width="9" height="25" text="$(text)" hint="$(hint)"/>
<edit g="col" g-width="3" height="25" field="$(field)"/>
</layout>
</template>
<template name="atrUse">
<layout g="row" g-min-height="25">
<checkBox align="left" width="100" text="$(text)" field="use$(field)" hint="Marque se o modificador desse atributo entra no ataque."/>
<comboBox align="left" width="50" field="mult$(field)" items="{'0', '0.5', '1', '1.5', '2', '2.5', '3'}" hint="Quantas vezes esse atributo é aplicado ao dano."/>
<checkBox g="col" g-width="9" text="$(text)" field="use$(field)" hint="Marque se o modificador desse atributo entra no ataque."/>
<comboBox g="col" g-width="3" field="mult$(field)" items="{'0', '0.5', '1', '1.5', '2', '2.5', '3'}" hint="Quantas vezes esse atributo é aplicado ao dano."/>
<dataLink field="mult$(field)" defaultValue="0"/>
</layout>
</template>
Expand Down
14 changes: 14 additions & 0 deletions Plugins/Sheets/Ficha RPG meister/FichaRPGmeister/Companions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,20 @@
<rectangle g="col" g-width="12" g-min-height="260" g-vert-tile="true" g-auto-height="true" color="black" strokeColor="white" strokeSize="1" padding="{left=5,right=5,top=5,bottom=5}">
<InventorySlot text="INVENTARIO" field="inventarioComp" field2="InventorioComp"/>
</rectangle>

<dataLink field="precoInventorioComp">
<event name="onChange">
if sheet==nil then return end;

local nodes = NDB.getChildNodes(sheet.campoDosCompanheiros);
local total = 0;
for i=1, #nodes, 1 do
total = total + (tonumber(nodes[i].precoInventorioComp) or 0);
end
sheet.precoInventorioComp = total;

</event>
</dataLink>
</layout>
<layout g="col" g-width="6" g-width-lg="3" g-min-height="400" g-vert-tile="true" g-auto-height="true" g-cnt-line-spacing="5">
<rectangle g="col" g-width="12" g-min-height="260" g-vert-tile="true" g-auto-height="true" color="black" strokeColor="white" strokeSize="1" padding="{left=5,right=5,top=5,bottom=5}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
<rectangle g="col" g-width="12" g-width-lg="5" g-min-height="300" color="black" strokeColor="white" strokeSize="1" g-vert-tile="true" padding="{left=5,right=5,top=5,bottom=5}">

<button g="col" g-width="4" height="25" text="+" onClick="self.rclBuffs:append()" hint="Novo efeito"/>
<button g="col" g-width="4" height="25" text="Organizar" onClick="self.rclBuffs:sort()" hint="Organizar"/>
<button g="col" g-width="4" height="25" text="Organizar" onClick="self.rclBuffs:reorganize()" hint="Organizar"/>
<button g="col" g-width="4" height="25" text="Exibir" hint="Exibir na mesa">
<event name="onClick">
local nodes = NDB.getChildNodes(sheet.listaDeBuffs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<event name="onUserChange">
local rcl = self:findControlByName("rclListaDosIdiomas")
if rcl~= nil then
rcl:sort()
rcl:reorganize()
end
</event>
</edit>
Expand Down
32 changes: 16 additions & 16 deletions Plugins/Sheets/Ficha RPG meister/FichaRPGmeister/SkillsSkill.lfm
Original file line number Diff line number Diff line change
Expand Up @@ -46,30 +46,30 @@
<event name="onUserChange">
local rcl = self:findControlByName("rclListaDasPericias")
if rcl~= nil then
rcl:sort()
rcl:reorganize()
end
</event>
</edit>
<comboBox g="col" g-width="3" height="25" vertTextAlign="center" horzTextAlign="center" field="chavePericia" items="{'FOR', 'DES', 'CON', 'INT', 'SAB', 'CAR', '-'}" values="{'1', '2', '3', '4', '5', '6', '7'}" fontColor="white"/>
<dataLink field="chavePericia">
<event name="onUserChange">
if sheet~= nil then
local node = NDB.getRoot(sheet)
<dataLink fields="{'chavePericia','efetModFor','efetModDes','efetModCon','efetModInt','efetModSab','efetModCar'}">
<event name="onChange">
if sheet == nil then return end
local node = NDB.getRoot(sheet)
if node == nil then return end

local atrTable = {}
atrTable["1"] = tonumber(node.efetModFor) or 0
atrTable["2"] = tonumber(node.efetModDes) or 0
atrTable["3"] = tonumber(node.efetModCon) or 0
atrTable["4"] = tonumber(node.efetModInt) or 0
atrTable["5"] = tonumber(node.efetModSab) or 0
atrTable["6"] = tonumber(node.efetModCar) or 0
atrTable["7"] = 0
local atrTable = {}
atrTable["1"] = tonumber(node.efetModFor) or 0
atrTable["2"] = tonumber(node.efetModDes) or 0
atrTable["3"] = tonumber(node.efetModCon) or 0
atrTable["4"] = tonumber(node.efetModInt) or 0
atrTable["5"] = tonumber(node.efetModSab) or 0
atrTable["6"] = tonumber(node.efetModCar) or 0
atrTable["7"] = 0

local atributoPericia = atrTable[sheet.chavePericia]
local atributoPericia = atrTable[sheet.chavePericia]


sheet.atributoPericia = atributoPericia
end
sheet.atributoPericia = atributoPericia
</event>
</dataLink>
</layout>
Expand Down
11 changes: 10 additions & 1 deletion Plugins/Sheets/Ficha RPG meister/FichaRPGmeister/Templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,15 @@
<rectangle g="col" g-width="2" height="25" color="black" strokeColor="white" strokeSize="1">
<label align="client" field="efetMod$(atr)" horzTextAlign="center"/>
</rectangle>
<dataLink fields="{'efetMod$(atr)'}">
<event name="onChange">
if sheet==nil then return end
local nodes = NDB.getChildNodes(sheet.campoDasPericias)
for i=1, #nodes, 1 do
nodes[i].efetMod$(atr) = sheet.efetMod$(atr)
end
</event>
</dataLink>
</template>
<template name="attributeFlow">
<flowLayout align="top" autoHeight="true" maxControlsPerLine="13" margins="{bottom=4}" horzAlign="center">
Expand Down Expand Up @@ -278,7 +287,7 @@
</rectangle>

<dataLink field="desl$(mode)">
<event name="onUserChange">
<event name="onChange">
if sheet == nil then return end
if sheet.desl$(mode) == nil or sheet.desl$(mode) == "" then
sheet.desl$(mode)Quadrados = nil
Expand Down
2 changes: 1 addition & 1 deletion Plugins/Sheets/Ficha RPG meister/module.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<module sdkVersion="3.7">
<id>FICHA_RPG_MEISTER</id>
<version>4.0.1</version>
<version>4.0.2</version>
<info lang="pt-BR">
<!--Informações do plugin na língua "pt-BR". Você pode ter várias tags "info", uma para cada tradução que quiser.-->
<name>Ficha RPG meister</name>
Expand Down
Binary file modified Plugins/Sheets/Ficha RPG meister/output/Ficha RPG meister.rpk
Binary file not shown.
2 changes: 1 addition & 1 deletion Plugins/plugins.xml
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@
</dataType>
</dataTypes>
</element>
<element id="FICHA_RPG_MEISTER" name="Ficha RPG meister" url="https://github.com/rrpgfirecast/firecast/blob/master/Plugins/Sheets/Ficha%20RPG%20meister/output/Ficha%20RPG%20meister.rpk?raw=true" fileName="Ficha RPG meister.rpk" repositoryPath="Sheets/Ficha RPG meister/" author="Ambesek &amp; Nefertyne" description="Ficha feita para a mesa RPGmeister. Funciona normalmente para o sistema d20/D&amp;D3.5" version="4.0.1" compilationDate="20122023042024" compilationDigest="0c67473de142b3f8829b34edc5d5ed60db1e7241">
<element id="FICHA_RPG_MEISTER" name="Ficha RPG meister" url="https://github.com/rrpgfirecast/firecast/blob/master/Plugins/Sheets/Ficha%20RPG%20meister/output/Ficha%20RPG%20meister.rpk?raw=true" fileName="Ficha RPG meister.rpk" repositoryPath="Sheets/Ficha RPG meister/" author="Ambesek &amp; Nefertyne" description="Ficha feita para a mesa RPGmeister. Funciona normalmente para o sistema d20/D&amp;D3.5" version="4.0.2" compilationDate="28042024163332" compilationDigest="dc4e9738fa82bf2bd7ea037ad82a57f2e8d84ccd">
<info lang="pt-BR" name="Ficha RPG meister" description="Ficha feita para a mesa RPGmeister. Funciona normalmente para o sistema d20/D&amp;D3.5" author="Ambesek &amp; Nefertyne" site="http://pt-br.rpgmeister.wikia.com/wiki/Main_Page"/>
<dataTypes>
<dataType id="Alterar.DataType.FichaRPGmeister" title="Ficha RPGmeister" formType="sheetTemplate">
Expand Down

0 comments on commit a53bb5b

Please sign in to comment.