概要
neosでlogixやってみる。
練習問題やってみた。
練習問題
レイアウトで button0、textfield、button1、読み込んだtextの並びで、
textfieldにhelloと、打ち、button1を押すと、読み込んだtextがhelloと変わるオブジェクトを作成せよ。
俺コードで書くと下記。
{a, _, _, _, _, _, _, _, _, _} = ButtonEvents NeosButton
{test.txt.content, ok, ng} = write a textfield.text
写真
手順
- devtooltipを装着
- 新規->空オブジェクトをスポーン
- 新規->オブジェクト->neos ui->buttonをスポーン
- 新規->オブジェクト->neos ui->text fieldをスポーン
- 新規->オブジェクト->neos ui->buttonをスポーン
- ファイルブラウザーを開き、haru.txtをダブルクリックでスポーン
- インスペクターを表示
- logixtooltipを装着
- 4つのオブジェクトを空の下に移動
- buttonのneosbuttonをグラブしてrで、インターフェース表示
- textfieldのtextをグラブしてrで、インターフェース表示
- haru.txtのtextをグラブしてrで、インターフェース表示
- 空オブジェクトをhelloにする
- ノードブラウザを表示
- Interaction->button eventsをスポーン
- actions->writeをスポーン
- インターフェースをつなぐ
以上。