AutoPlay Media Studio – Menu Action Plugin ile Menü Oluşturma ve Düzenleme

guclusat

Tanınmış Üye
Süper Moderatör
Menu Action Plugin

Version 3.0.0.0
Rewrote the plugin and framework from scratch(again)
List of all currently existing functions:
Menu.Create()
Menu.DoesExist()
Menu.GetActive()
Menu.GetChecked()
Menu.GetEnabled()
Menu.GetNames()
Menu.GetItemProperties()
Menu.GetTable()
Menu.GetXML()
Menu.OnMenu()
Menu.RemoveItem()
Menu.Rename()
Menu.RenameItem()
Menu.SetActive()
Menu.SetChecked()
Menu.SetEnabled()
Menu.SetDelmiter()
Menu.SetItem()
Menu.ToggleChecked()
Menu.ToggleEnabled()


Version 3.1.0.0
Added the following functions:
Menu.LoadFromFile()
Menu.SaveToFile()
Menu.SetXML()


Version 3.1.0.2
Fixed a bug that disallowed the creation of more than one separator per main menu item

Version 3.1.0.1
Fixed the Menu.OnMenu() easy action argument
Added the Menu.Enable() function

Version 3.2.0.0
Fixed a bug that caused menu saving and loading to fail
Fixed a bug in the Menu.SetDelmiter() function
Fixed a bug that disallowed spaces in menu names


The Menu Action Plugin makes creating and manipulating menus a cinch.
Forget those exhaustive tables of properties and subtables. With the Menu plugin you'll be on your way to simple menus in no time at all. no more referencing menu items by number. No more miles of code in your On Menu events. This plugin allows you to reference your menu items by name and to specify code based on those names so you never need to remember a menu id again.

Basic steps in making or editing a menu.
  1. Set the desired menu as the active menu. [Menu.SetActive("My Menu")]
  2. Create/Edit items. [Any function that adds/edits menu items]
  3. Update the menu. [Menu.Update()]

In order to see changes to the menu bar after they are made to the specified menu, you need to update the menu, either with a function's AutoUpdate feature or by using Menu.Update(). This method is in place so you can have several menus loaded at once and manipulate them but only update the active one (the one loaded into the menu bar).

Additional: One of the features of this plugin is that you can load several menus into memory at once. At anytime, you can set active and update a specific menu and have it shown in the menu bar or a popup menu, all the while, having the ability to alter any of the loaded menus whether they are active or not.

Please report any bugs and feel to give any feedback you may have.​
The Menu Action Plugin makes creating and manipulating menus a cinch. Forget those exhaustive tables of properties and subtables. With the Menu plugin you'll be on your way to simple menus in no time at all. no more referencing menu items by number. No more miles of code in your On Menu events. This plugin allows you to reference your menu items by name and to specify code based on those name so you never need to remember a menu id again.
 

Eklentiler

Menu Action Plugin​

Menu Action Plugin, AutoPlay Media Studio projelerinde uygulama menülerini programlama yoluyla oluşturmak ve değiştirmek için geliştirilmiş bir Action Plugin'dir.

Eklentinin eski 3.x sürümlerinde menü oluşturma, menü öğelerinin özelliklerini değiştirme, etkinleştirme/devre dışı bırakma, işaretleme ve menüleri dosyaya kaydetme/yükleme gibi birçok özellik bulunuyordu.

Plugin ile yapılabilen işlemler​

Eski Menu Action Plugin sürümlerinde aşağıdaki Action'lar bulunuyordu:
  • Menu.Create()
  • Menu.DoesExist()
  • Menu.GetActive()
  • Menu.GetChecked()
  • Menu.GetEnabled()
  • Menu.GetNames()
  • Menu.GetItemProperties()
  • Menu.GetTable()
  • Menu.GetXML()
  • Menu.OnMenu()
  • Menu.RemoveItem()
  • Menu.Rename()
  • Menu.RenameItem()
  • Menu.SetActive()
  • Menu.SetChecked()
  • Menu.SetEnabled()
  • Menu.SetItem()
  • Menu.ToggleChecked()
  • Menu.ToggleEnabled()
Daha sonraki sürümlerde Menu.LoadFromFile(), Menu.SaveToFile() ve Menu.SetXML() gibi işlevler de eklenmiştir.

Güncel AutoPlay Media Studio 9.2 için​

Güncel AMS 9.2 sürümünde menü oluşturmak için bu eski eklentiye her durumda ihtiyaç yoktur. AutoPlay Media Studio'nun kendi Menu Bar sistemi bulunmaktadır.

Menü ayarlarına:

Project > Menu Bar...

yoluyla ulaşabilirsiniz. Ayrıca proje olayları içerisinde On Menu olayına bağlı Action'lar çalıştırılabilir.

AMS 9'da mevcut menü yapısını program içerisinden okumak için yerleşik:

Application.GetMenu()

Action'ı da kullanılabilir. Bu Action mevcut menü çubuğunun yapısını tablo şeklinde döndürür ve menü öğelerinin ID, Text, Enabled, Checked ve SubMenu gibi bilgilerine erişilebilir.

Eski Plugin ne zaman kullanılmalı?​

Eski bir AMS projesinde Menu Action Plugin kullanılıyorsa, proje çalışmaya devam ettiği sürece eklentiyi korumak mantıklıdır.

Yeni bir proje hazırlanıyorsa önce AMS'nin yerleşik Menu Bar özellikleri ve dahili Action'ları değerlendirilmelidir.

Güncel not: Menu Action Plugin üçüncü taraf/eski bir Action Plugin'dir. Güncel AMS 9.2 ile uyumluluğu ayrıca test edilmelidir. AMS 9.2'de eklentiler için SDK v3 gereksinimi bulunmaktadır; bu nedenle eski bir plugin'in yeni sürümde doğrudan çalışacağı garanti edilmemektedir.
Eski plugin dosyaları ve örnek proje bu konuda arşiv amaçlı tutulabilir.
 
Geri
Yukarı