fix stuff n tings
This commit is contained in:
parent
2596b88b75
commit
440376e5c3
@ -113,6 +113,18 @@ function registerEvents(store) {
|
|||||||
console.log('event clear item');
|
console.log('event clear item');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function clearInstance() {
|
||||||
|
store.dispatch(actions.setCombiner([null, null, null]));
|
||||||
|
store.dispatch(actions.setReclaiming(false));
|
||||||
|
store.dispatch(actions.setActiveSkill(null));
|
||||||
|
store.dispatch(actions.setActiveConstruct(null));
|
||||||
|
store.dispatch(actions.setInfo(null));
|
||||||
|
store.dispatch(actions.setItemEquip(null));
|
||||||
|
store.dispatch(actions.setItemUnequip(null));
|
||||||
|
store.dispatch(actions.setVboxHighlight([]));
|
||||||
|
store.dispatch(actions.setConstructDeleteId(null));
|
||||||
|
}
|
||||||
|
|
||||||
function setAccountInstances(v) {
|
function setAccountInstances(v) {
|
||||||
return store.dispatch(actions.setInstances(v));
|
return store.dispatch(actions.setInstances(v));
|
||||||
}
|
}
|
||||||
@ -187,6 +199,7 @@ function registerEvents(store) {
|
|||||||
return {
|
return {
|
||||||
errorPrompt,
|
errorPrompt,
|
||||||
clearCombiner,
|
clearCombiner,
|
||||||
|
clearInstance,
|
||||||
setAccount,
|
setAccount,
|
||||||
setActiveSkill,
|
setActiveSkill,
|
||||||
setActiveItem,
|
setActiveItem,
|
||||||
|
|||||||
@ -81,20 +81,22 @@ function createSocket(events) {
|
|||||||
|
|
||||||
function sendVboxAccept(instanceId, group, index) {
|
function sendVboxAccept(instanceId, group, index) {
|
||||||
send({ method: 'vbox_accept', params: { instance_id: instanceId, group, index } });
|
send({ method: 'vbox_accept', params: { instance_id: instanceId, group, index } });
|
||||||
|
events.clearInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
function sendVboxApply(instanceId, constructId, index) {
|
function sendVboxApply(instanceId, constructId, index) {
|
||||||
send({ method: 'vbox_apply', params: { instance_id: instanceId, construct_id: constructId, index } });
|
send({ method: 'vbox_apply', params: { instance_id: instanceId, construct_id: constructId, index } });
|
||||||
events.setActiveItem(null);
|
events.clearInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
function sendVboxUnequip(instanceId, constructId, target) {
|
function sendVboxUnequip(instanceId, constructId, target) {
|
||||||
send({ method: 'vbox_unequip', params: { instance_id: instanceId, construct_id: constructId, target } });
|
send({ method: 'vbox_unequip', params: { instance_id: instanceId, construct_id: constructId, target } });
|
||||||
events.clearInfo();
|
events.clearInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
function sendVboxDiscard(instanceId) {
|
function sendVboxDiscard(instanceId) {
|
||||||
send({ method: 'vbox_discard', params: { instance_id: instanceId } });
|
send({ method: 'vbox_discard', params: { instance_id: instanceId } });
|
||||||
|
events.clearInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
function sendVboxCombine(instanceId, indices) {
|
function sendVboxCombine(instanceId, indices) {
|
||||||
@ -104,6 +106,7 @@ function createSocket(events) {
|
|||||||
|
|
||||||
function sendVboxReclaim(instanceId, index) {
|
function sendVboxReclaim(instanceId, index) {
|
||||||
send({ method: 'vbox_reclaim', params: { instance_id: instanceId, index } });
|
send({ method: 'vbox_reclaim', params: { instance_id: instanceId, index } });
|
||||||
|
events.clearInstance();
|
||||||
}
|
}
|
||||||
|
|
||||||
function sendItemInfo() {
|
function sendItemInfo() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user