瀏覽代碼

Basic help

Robert Carnecky 10 年之前
父節點
當前提交
ce134bb388
共有 3 個文件被更改,包括 41 次插入5 次删除
  1. 40
    4
      generator/generate.html
  2. 二進制
      generator/img/help/help.png
  3. 1
    1
      generator/js/ui.js

+ 40
- 4
generator/generate.html 查看文件

@@ -38,9 +38,8 @@
38 38
         <div class="row">
39 39
             <div class="alert alert-warning alert-dismissible" role="alert">
40 40
                 <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
41
-                <strong>Warning!</strong>
42
-                Some RPG systems are protected by copyright.
43
-                Even if some spell/item data is freely available, it does not mean you may redistribute cards containing such data.
41
+                <strong>Note</strong>
42
+                Click on "Open help" to display some information about how to use this generator and what to do if you have a feature request or found a bug.
44 43
             </div>
45 44
         </div>
46 45
         <div class="row">
@@ -314,7 +313,7 @@
314 313
         </div>
315 314
     </div>
316 315
     <!-- Modal -->
317
-    <div class="modal" id="print-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
316
+    <div class="modal" id="print-modal" tabindex="-1" role="dialog">
318 317
         <div class="modal-dialog">
319 318
             <div class="modal-content">
320 319
                 <div class="modal-header">
@@ -341,5 +340,42 @@
341 340
             </div>
342 341
         </div>
343 342
     </div>
343
+    <!-- Modal -->
344
+    <div class="modal" id="help-modal" tabindex="-1" role="dialog">
345
+        <div class="modal-dialog">
346
+            <div class="modal-content">
347
+                <div class="modal-header">
348
+                    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
349
+                    <h4 class="modal-title" id="myModalLabel">RGP card generator</h4>
350
+                </div>
351
+                <div class="modal-body">
352
+                    <ul>
353
+                        <li>Some RPG systems are protected by copyright. Even if some spell/item data is freely available, it does not mean you may redistribute cards containing such data.</li>
354
+                        <li>If you find a bug or have a feature request, post them at the <a href="https://github.com/crobi/rpg-cards/issues">Github project site</a>.</li>
355
+                        <li>
356
+                            The user interface consists of three columns: 
357
+                            <img alt="help" src="img/help/help.png" style="max-width:95%; display:block; padding: 5px; margin: 10px 0 10px 0; border: 1px solid #ebebeb; box-shadow: 0 0 5px #ebebeb;"/>
358
+                            The left column contains the menu and global settings.
359
+                            In the middle menu, you can select and edit individual cards.
360
+                            The right column contains a preview of the selected card.
361
+                        </li>
362
+                        <li>
363
+                            To use the generator, either load the sample card deck ("Load sample"),
364
+                            load a card deck from a file ("Load from file"),
365
+                            or manually add some cards.
366
+                            When you're done, click on "Generate" to generate a document with all your cards, which can then be printed.
367
+                        </li>
368
+                        <li>
369
+                            To learn about what features are available to define a card, inspect the sample deck or
370
+                            read some basic documentation at the <a href="http://crobi.github.io/rpg-cards/">project site</a>.
371
+                        </li>
372
+                    </ul>
373
+                </div>
374
+                <div class="modal-footer">
375
+                    <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
376
+                </div>
377
+            </div>
378
+        </div>
379
+    </div>
344 380
 </body>
345 381
 </html>

二進制
generator/img/help/help.png 查看文件


+ 1
- 1
generator/js/ui.js 查看文件

@@ -184,7 +184,7 @@ function ui_render_selected_card() {
184 184
 }
185 185
 
186 186
 function ui_open_help() {
187
-    window.open("http://crobi.github.io/rpg-cards/", "_blank");
187
+    $("#help-modal").modal('show');
188 188
 }
189 189
 
190 190
 function ui_select_icon() {

Loading…
取消
儲存