README.md in browser_app_base-0.1.2 vs README.md in browser_app_base-0.1.3

- old
+ new

@@ -60,10 +60,12 @@ ```shell $ /tmp/test/bin/start_my_app.rb ``` +![app](img/app.png) + ## browser setting ${home}/${app_nane}/config/browser.json Set the path for your Windows or Linux Chrome browser @@ -100,9 +102,88 @@ # log message yield "log message" end end ``` + +## Application Setting + + ${home}/${app_nane}/config/setting.json + + +```json +[ + { + "name": "name1", + "value": "value1 2 3 4", + "type": "input", + "select": "", + "description": "設定項目1" + }, + { + "name": "name2", + "value": true, + "type": "checkbox", + "select": "", + "description": "有効にする場合はチェック" + }, + { + "name": "name3", + "value": "2", + "type": "select", + "select": [ + "1", + "2", + "3", + "4", + "5" + ], + "description": "選択項目" + }, + { + "name": "name4", + "value": "value4", + "type": "input", + "select": "", + "description": "設定項目4" + }, + { + "name": "name5", + "value": "value5", + "type": "input", + "select": "", + "description": "設定項目5" + }, + { + "name": "name6", + "value": "value6", + "type": "input", + "select": "", + "description": "設定項目6" + } +] +``` +```ruby +class MyApp < AppMainBase + def start(argv) + # popup message + app_send("popup:message string") + + # log message + yield "log message" + end + + # read setting + puts @config["name1"] +end +``` + +Setting menu +![app](img/setting_menu.png) + + +Setting screen +![app](img/setting.png) ## Development To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).