Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
crocuis committed Mar 31, 2018
1 parent 6720672 commit 7fdf062
Show file tree
Hide file tree
Showing 14 changed files with 240 additions and 242 deletions.
4 changes: 4 additions & 0 deletions Content/Scripts/demos/build/demo-browserEd.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ module.exports = function broserDesign(E) {
let treeViewStyle = {
'slot.size.size-rule': 'Fill',
SelectionMode: 'Multi',
Columns: [{
ID: 'Name',
Width: 1.0
}],
OnGenerateRowEvent: (item, column, widget) => {
let name;
if (item) {
Expand Down
2 changes: 1 addition & 1 deletion Content/Scripts/demos/build/demo-graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ module.exports = function (E) {
function init() {
commands.BindingContext = context;
commands.Commands = "SelectAll Delete Copy Cut Paste Duplicate".split(' ').map(x => ({
Id: x,
ID: x,
CommandInfo: JavascriptMenuLibrary.GenericCommand(x)
}));
commands.Initialize();
Expand Down
2 changes: 1 addition & 1 deletion Content/Scripts/demos/build/demo-sm.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ module.exports = function (E) {
function init() {
commands.BindingContext = context;
commands.Commands = "SelectAll Delete Copy Cut Paste Duplicate".split(' ').map(x => ({
Id: x,
ID: x,
CommandInfo: JavascriptMenuLibrary.GenericCommand(x)
}));
commands.Initialize();
Expand Down
2 changes: 1 addition & 1 deletion Content/Scripts/demos/build/extension-tool.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function MakeCommands() {
}
}
}
}, (v, k) => _.extend({ Id: k }, v.params));
}, (v, k) => _.extend({ ID: k }, v.params));
commands.Initialize();
commands.destroy = () => {
commands.Uninitialize();
Expand Down
6 changes: 6 additions & 0 deletions Content/Scripts/demos/src/demo-browserEd.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ module.exports = function broserDesign(E) {
let treeViewStyle = {
'slot.size.size-rule' : 'Fill',
SelectionMode:'Multi',
Columns:[
{
ID: 'Name',
Width: 1.0
}
],
OnGenerateRowEvent: (item, column, widget) => {
let name
if (item) {
Expand Down
2 changes: 1 addition & 1 deletion Content/Scripts/demos/src/demo-graph.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ module.exports = function (E) {
function init() {
commands.BindingContext = context
commands.Commands = "SelectAll Delete Copy Cut Paste Duplicate".split(' ').map(x => ({
Id: x,
ID: x,
CommandInfo: JavascriptMenuLibrary.GenericCommand(x)
}))
commands.Initialize();
Expand Down
2 changes: 1 addition & 1 deletion Content/Scripts/demos/src/demo-sm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ module.exports = function (E) {
function init() {
commands.BindingContext = context
commands.Commands = "SelectAll Delete Copy Cut Paste Duplicate".split(' ').map(x => ({
Id: x,
ID: x,
CommandInfo: JavascriptMenuLibrary.GenericCommand(x)
}))
commands.Initialize();
Expand Down
2 changes: 1 addition & 1 deletion Content/Scripts/demos/src/extension-tool.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function MakeCommands() {
}
}
}
}, (v, k) => _.extend({ Id: k }, v.params))
}, (v, k) => _.extend({ ID: k }, v.params))
commands.Initialize();
commands.destroy = () => {
commands.Uninitialize();
Expand Down
2 changes: 1 addition & 1 deletion Content/Scripts/extension-demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ function new_commands(opts) {
let commands = create_commands(ctx,{
Commands : _.map(opts.commands,(v,k) => (
{
Id: k,
ID: k,
FriendlyName: v.friendlyName,
Description: v.description,
ActionType: v.actionType,
Expand Down
20 changes: 10 additions & 10 deletions Content/Scripts/extension-exampleWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,16 +213,16 @@ function main() {
}

let contexts = makeContext({
Id:'UnrealJS_Contexts',
ID:'UnrealJS_Contexts',
Commands:[
{
Id: 'debug',
ID: 'debug',
FriendlyName : 'Set as debug context',
Description : 'Set as debug context',
ActionType : 'Button'
},
{
Id: 'undebug',
ID: 'undebug',
FriendlyName : 'Reset to normal context',
Description : 'Reset to normal context',
ActionType : 'Button'
Expand All @@ -231,16 +231,16 @@ function main() {
})

let packages = makeContext({
Id:'UnrealJS_Packages',
ID:'UnrealJS_Packages',
Commands: [
{
Id: 'install',
ID: 'install',
FriendlyName : 'Install this package',
Description : 'Install this package',
ActionType : 'Button'
},
{
Id: 'uninstall',
ID: 'uninstall',
FriendlyName : 'Remove this package',
Description : 'Remove this package',
ActionType : 'Button'
Expand All @@ -264,11 +264,11 @@ function main() {
ItemHeight:20,
Columns:[
{
Id: 'Name',
ID: 'Name',
Width: 0.7
},
{
Id: 'Status',
ID: 'Status',
Width: 0.3
}
],
Expand Down Expand Up @@ -385,11 +385,11 @@ function main() {
},
Columns:[
{
Id: 'Name',
ID: 'Name',
Width: 0.7
},
{
Id: 'Status',
ID: 'Status',
Width: 0.3
}
],
Expand Down
4 changes: 2 additions & 2 deletions Content/Scripts/extension-extender.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ function main() {
commands.BindingContext = context
commands.Commands = [
{
Id: 'About',
ID: 'About',
FriendlyName: 'Unreal.js',
Description: 'Learn about unreal.js',
ActionType: 'Button'
},
{
Id: 'NCsoft',
ID: 'NCsoft',
FriendlyName: 'Visit NCsoft',
Description: 'Learn about NCsoft',
ActionType: 'Button'
Expand Down

0 comments on commit 7fdf062

Please sign in to comment.