1<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2<html xml:lang="en-US" lang="en-US">
3  <head>
4    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5    <meta http-equiv="Content-Style-Type" content="text/css" />
6    <link rel="stylesheet" href="../../../css/manpage.css" type="text/css" />
7    <title>Layout (lyt) Sample Demo</title>
8  </head>
9
10  <body>
11    <h1>tagGroupBind</h1>
12
13    <h2>Overview</h2>
14
15    <p>This demo independently controls animations for each group set using animation interval tag.</p>
16
17    <h2>How to Use</h2>
18
19    <p>Move the cross-hairs with the pointing device.</p>
20
21    <p>When the crosshairs are moved over a pane, the animation of that pane changes.</p>
22
23    <h2>Description</h2>
24
25    <p>Two animation segment tags (select and unselect) are included in the sample animation file tagGroupBind.clan.</p>
26
27    <p>select indicates selected status, while unselect represents unselected status.</p>
28
29    As such, specify Group_1 and Group_2 for each animation segment tag.<p>
30
31    <p>In order to manage the animation state for each of the two groups, create four instances of AnimTransform and enable/disable according to the selection status.</p>
32
33    <p>The following processing is performed by this sample demo.</p>
34
35    <ul>
36        <li>Initialization of the resource accessor</li>
37        <li>Loading of binary files</li>
38        <li>Binding of animations for each group</li>
39        <li>Hit check</li>
40        <li>Toggling of animation enable/disable based on whether there is a hit</li>
41    </ul>
42
43    <h2>Cautions Regarding Data Creation</h2>
44
45    <p>If a parent pane and a child pane (or descendant) are included in the group specified with Edit Animation Section Tags &gt; Related Group in LayoutEditor, and &quot;Bind Recursively&quot; is enabled, the following warning is output to the console.</p>
46
47    <pre>&quot;lyt_animation.cpp:340 Warning:already bind animation.&quot;</pre>
48
49    <p>An example of a specific group configuration is shown by the pane hierarchy group below.</p>
50
51    <pre>
52(Pane Hierarchy)
53  ParentPane0
54    |
55    |- ChildPane0
56
57Groups
58  Group0
59   |
60   |- ParentPane0
61   |
62   |- ChildPane0</pre>
63
64    <p>In a configuration such as this, this warning is issued because an animation will be bound multiple times to the same pane (ChildPane0 in the above example).</p>
65
66    <p>&quot;<CODE>Either disable Bind Recursively, or adjust so that children (or descendants) are not included in the group.</CODE>&quot;</p>
67
68    <h2>Scope of the Demo</h2>
69
70    <p>This sample demo is related to the following items.</p>
71
72    <ul>
73      <li><a href="../AnimResource/Overview.html"><code>nw::lyt::AnimResource</code></a></li>
74      <li><a href="../AnimTransform/Overview.html"><code>nw::lyt::AnimTransform</code></a></li>
75      <li><a href="../ArcResourceAccessor/Overview.html"><code>nw::lyt::ArcResourceAccessor</code></a></li>
76      <li><a href="../Bounding/Overview.html"><code>nw::lyt::Bounding</code></a></li>
77      <li><a href="../Group/Overview.html"><code>nw::lyt::Group</code></a></li>
78      <li><a href="../Layout/Overview.html"><code>nw::lyt::Layout</code></a></li>
79      <li><a href="../Pane/Overview.html"><code>nw::lyt::Pane</code></a></li>
80    </ul>
81
82  <hr><p>CONFIDENTIAL</p></body>
83</html>
84