-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git pushMerge branch 'GAMA_1.8.2' of github.com:gama-platform/gama in…
…to GAMA_1.8.2
- Loading branch information
Showing
3 changed files
with
24 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
....models/models/Visualization and User Interaction/User Interaction/models/User input.gaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* Name: UserInputdialog_example | ||
* Author: Patrick Taillandier | ||
* Description: Model which shows how to use user_input_dialog | ||
* Tags: gui | ||
*/ | ||
|
||
model Confirmdialog_example | ||
|
||
global { | ||
init { | ||
//2 types of elements can be added: enter (enter a value) and choose (choose a value among a list of possible values) | ||
map result <- user_input_dialog("Main title",[enter("Enter a value", 0.0) , choose("Choose a value",string,"value 1", ["value 1","value 2"])]); | ||
|
||
write sample(result); | ||
} | ||
} | ||
|
||
experiment UserInputdialog_example type: gui ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters