MBS FileMaker Plugin Example Databases

GameCenter

All examples are included with download of MBS FileMaker Plugin.

GameCenter.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts6
Value Lists0
Custom Functions0
Custom Menus0
File Options
Default custom menu set[Standard FileMaker Menus]
When opening file
Minimum allowed version12.0
Login usingAccount Name; Account= Admin
Allow user to save passwordOff
Require iOS passcodeOff
Switch to layoutOff
Hide all toolbarsOff
Script triggers
OnFirstWindowOpenScript: Initialize
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
GameCenter
0 fields defined, 1 record
GameCenter

Layout Objects: GameCenter

Buttons

Button PropertiesCoordinatesScript/Script Step
    Type:
  • Text: Check Local Player
  • Top: 61 pt
  • Left: 23 pt
  • Bottom: 93 pt
  • Right: 183 pt
  • Anchoring: Left, Top
Perform Script [ “Check Local Player” ]

Scripts:


Button PropertiesCoordinatesScript/Script Step
    Type:
  • Text: Authenticate Local User
  • Top: 61 pt
  • Left: 195 pt
  • Bottom: 93 pt
  • Right: 355 pt
  • Anchoring: Left, Top
Perform Script [ “Authenticate Local Player” ]

Scripts:


Button PropertiesCoordinatesScript/Script Step
    Type:
  • Text: Show Game Center View
  • Top: 61 pt
  • Left: 367 pt
  • Bottom: 93 pt
  • Right: 527 pt
  • Anchoring: Left, Top
Perform Script [ “Show Game Center View” ]

Scripts:


Button PropertiesCoordinatesScript/Script Step
    Type:
  • Text: Achievements
  • Top: 108 pt
  • Left: 23 pt
  • Bottom: 140 pt
  • Right: 183 pt
  • Anchoring: Left, Top
Perform Script [ “Show Achievement Descriptions” ]

Scripts:


Script Hierarchy

Check Local Player
Authenticate Local Player
Initialize
Show Game Center View
GameCenterViewClosed
Show Achievement Descriptions

Next Script: [Authenticate Local Player]
Script NameCheck Local Player
Run script with full access privilegesOff
Include In MenuNo
Layouts that use this script
Scripts that use this script
    Script Definition
    Script Steps
    Fields used in this script
      Scripts used in this script
        Layouts used in this script
          Tables used in this script
            Table occurrences used by this script
              Custom Functions used by this script
                Custom menu set used by this script

                  Previous Script: [Check Local Player]Next Script: [Initialize]
                  Script NameAuthenticate Local Player
                  Run script with full access privilegesOff
                  Include In MenuNo
                  Layouts that use this script
                  Scripts that use this script
                    Script Definition
                    Script Steps
                    • Set Variable [ $r; Value:MBS( "GameKit.LocalPlayer.authenticate" ) ]
                    Fields used in this script
                      Scripts used in this script
                        Layouts used in this script
                          Tables used in this script
                            Table occurrences used by this script
                              Custom Functions used by this script
                                Custom menu set used by this script

                                  Previous Script: [Authenticate Local Player]Next Script: [Show Game Center View]
                                  Script NameInitialize
                                  Run script with full access privilegesOff
                                  Include In MenuYes
                                  Layouts that use this script
                                    Scripts that use this script
                                      Script Definition
                                      Script Steps
                                      Fields used in this script
                                        Scripts used in this script
                                          Layouts used in this script
                                            Tables used in this script
                                              Table occurrences used by this script
                                                Custom Functions used by this script
                                                  Custom menu set used by this script

                                                    Previous Script: [Initialize]Next Script: [GameCenterViewClosed]
                                                    Script NameShow Game Center View
                                                    Run script with full access privilegesOff
                                                    Include In MenuYes
                                                    Layouts that use this script
                                                    Scripts that use this script
                                                      Script Definition
                                                      Script Steps
                                                      Fields used in this script
                                                        Scripts used in this script
                                                          Layouts used in this script
                                                            Tables used in this script
                                                              Table occurrences used by this script
                                                                Custom Functions used by this script
                                                                  Custom menu set used by this script

                                                                    Previous Script: [Show Game Center View]Next Script: [Show Achievement Descriptions]
                                                                    Script NameGameCenterViewClosed
                                                                    Run script with full access privilegesOff
                                                                    Include In MenuYes
                                                                    Layouts that use this script
                                                                      Scripts that use this script
                                                                        Script Definition
                                                                        Script Steps
                                                                        • Show Custom Dialog [ Title: "GameCenterViewClosed"; Message: Get(ScriptParameter); Default Button: “OK”, Commit: “Yes” ]
                                                                        Fields used in this script
                                                                          Scripts used in this script
                                                                            Layouts used in this script
                                                                              Tables used in this script
                                                                                Table occurrences used by this script
                                                                                  Custom Functions used by this script
                                                                                    Custom menu set used by this script

                                                                                      Previous Script: [GameCenterViewClosed]
                                                                                      Script NameShow Achievement Descriptions
                                                                                      Run script with full access privilegesOff
                                                                                      Include In MenuYes
                                                                                      Layouts that use this script
                                                                                      Scripts that use this script
                                                                                        Script Definition
                                                                                        Script Steps
                                                                                        • Set Variable [ $list; Value:MBS( "GameKit.LoadAchievementDescriptions" ) ]
                                                                                        • If [ MBS("IsError") = 0 ]
                                                                                        • Set Variable [ $count; Value:ValueCount ( $list ) ]
                                                                                        • Set Variable [ $index; Value:1 ]
                                                                                        • Set Variable [ $lines; Value:"" ]
                                                                                        • Loop
                                                                                        • Set Variable [ $item; Value:GetValue($list; $index) ]
                                                                                        • Set Variable [ $title; Value:MBS( "GameKit.AchievementDescription.Title"; $item ) ]
                                                                                        • Set Variable [ $AchievedDescription; Value:MBS( "GameKit.AchievementDescription.AchievedDescription"; $item ) ]
                                                                                        • Set Variable [ $lines; Value:$lines & $item & ¶ & $title & ¶ & $AchievedDescription & ¶ & ¶ ]
                                                                                        • #next
                                                                                        • Set Variable [ $index; Value:$index + 1 ]
                                                                                        • Exit Loop If [ $index > $count ]
                                                                                        • End Loop
                                                                                        • Show Custom Dialog [ Title: "Achievement descriptions:"; Message: $lines; Default Button: “OK”, Commit: “Yes” ]
                                                                                        • Else
                                                                                        • Show Custom Dialog [ Title: "Failed to query"; Message: $list; Default Button: “OK”, Commit: “Yes” ]
                                                                                        • End If
                                                                                        Fields used in this script
                                                                                          Scripts used in this script
                                                                                            Layouts used in this script
                                                                                              Tables used in this script
                                                                                                Table occurrences used by this script
                                                                                                  Custom Functions used by this script
                                                                                                    Custom menu set used by this script

                                                                                                      Download example: GameCenter

                                                                                                      Used functions:




                                                                                                      Links
                                                                                                      MBS Xojo Plugins