public RemoveNodeAttribute ( String sourceId, ulong timeId, String nodeId, String attribute ) : void | ||
sourceId | String | |
timeId | ulong | |
nodeId | String | |
attribute | String | |
return | void |
public void RemoveNodeAttribute(String sourceId, ulong timeId,
String nodeId, String attribute)
{
NetStreamStorage buff = new NetStreamStorage().
EncodeArray(_streamIdArray).
EncodeEvent(NetStreamEvent.DelNodeAttr).
EncodeString(sourceId).
EncodeNative(timeId).
EncodeString(nodeId).
EncodeString(attribute);
DoSend(buff);
}
private static void AddNodeWithLabel(NetStreamSender stream, string sourceId, ref ulong timeId, string name) { if (lastNode != null) stream.RemoveNodeAttribute(sourceId, timeId++, lastNode, "ui.class"); stream.AddNode(sourceId, timeId++, name); stream.AddNodeAttribute(sourceId, timeId++, name, "ui.label", name); stream.AddNodeAttribute(sourceId, timeId++, name, "ui.class", "active"); lastNode = name; }